1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00

testing/perl-unicode-string: recreate with apkbuild-cpan

This commit is contained in:
Natanael Copa 2014-10-29 07:21:18 +00:00
parent 5f0443a23c
commit 21e2a18d35

View file

@ -1,35 +1,33 @@
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-unicode-string
_pkgreal=Unicode-String
pkgver=2.09
pkgrel=1
pkgrel=2
pkgdesc="String of Unicode characters for perl (UCS2/UTF16)"
url="http://search.cpan.org/dist/Unicode-String/"
arch="all"
license="PerlArtistic"
depends="perl"
depends_dev="perl-dev"
makedepends="$depends_dev"
install=""
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
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() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test
}
package() {