mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
testing/perl-unicode-string: recreate with apkbuild-cpan
This commit is contained in:
parent
5f0443a23c
commit
21e2a18d35
1 changed files with 15 additions and 17 deletions
|
@ -1,35 +1,33 @@
|
||||||
|
# Automatically generated by apkbuild-cpan, template 1
|
||||||
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
||||||
# Maintainer:
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
pkgname=perl-unicode-string
|
pkgname=perl-unicode-string
|
||||||
|
_pkgreal=Unicode-String
|
||||||
pkgver=2.09
|
pkgver=2.09
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="String of Unicode characters for perl (UCS2/UTF16)"
|
pkgdesc="String of Unicode characters for perl (UCS2/UTF16)"
|
||||||
url="http://search.cpan.org/dist/Unicode-String/"
|
url="http://search.cpan.org/dist/Unicode-String/"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="PerlArtistic"
|
license="GPL PerlArtistic"
|
||||||
depends="perl"
|
cpandepends=""
|
||||||
depends_dev="perl-dev"
|
cpanmakedepends=" "
|
||||||
makedepends="$depends_dev"
|
depends="$cpandepends"
|
||||||
install=""
|
makedepends="perl-dev $cpanmakedepends"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Unicode-String-$pkgver.tar.gz"
|
source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz"
|
||||||
|
|
||||||
_builddir="$srcdir"/Unicode-String-$pkgver
|
_builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
local i
|
|
||||||
cd "$_builddir"
|
cd "$_builddir"
|
||||||
for i in $source; do
|
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||||
case $i in
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$_builddir"
|
||||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
|
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||||
make || return 1
|
make && make test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue