diff options
Diffstat (limited to 'community/perl-regexp-tr/APKBUILD')
-rw-r--r-- | community/perl-regexp-tr/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/community/perl-regexp-tr/APKBUILD b/community/perl-regexp-tr/APKBUILD index d02aea24a2..525c8edb48 100644 --- a/community/perl-regexp-tr/APKBUILD +++ b/community/perl-regexp-tr/APKBUILD @@ -4,38 +4,43 @@ pkgname=perl-regexp-tr _pkgreal=Regexp-Tr pkgver=0.05 -pkgrel=0 +pkgrel=1 pkgdesc="Run-time-compiled tr/// objects." url="http://search.cpan.org/dist/Regexp-Tr/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/C/CH/CHIA/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + default_prepare + + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="1c01cb427ae8cfeba5d92fb392336510 Regexp-Tr-0.05.tar.gz" -sha256sums="d3e1563cb2eb04419715407766c402e702b351648edf2630fe7b6ee4ecfd81cd Regexp-Tr-0.05.tar.gz" sha512sums="2ef505f63790146fb57e76da5cea604c62d98b214b5db2eadd617059d29c3a8c7f923a4a5dc1f9152fbe36fea6f069821292b7fa2c38cc6f82fc536909eed5f9 Regexp-Tr-0.05.tar.gz" |