community/perl-[n-s]*: modernize APKBUILD

Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
- add missing default_prepare in prepare()
This commit is contained in:
Roberto Oliveira 2017-11-05 13:07:06 +00:00
parent a439676586
commit 3ce302210e
18 changed files with 225 additions and 144 deletions

View File

@ -4,7 +4,7 @@
pkgname=perl-net-dns-sec pkgname=perl-net-dns-sec
_pkgreal=Net-DNS-SEC _pkgreal=Net-DNS-SEC
pkgver=1.03 pkgver=1.03
pkgrel=0 pkgrel=1
pkgdesc="DNSSEC extensions to Net::DNS" pkgdesc="DNSSEC extensions to Net::DNS"
url="http://search.cpan.org/dist/Net-DNS-SEC/" url="http://search.cpan.org/dist/Net-DNS-SEC/"
arch="noarch" arch="noarch"
@ -12,32 +12,37 @@ license="mit"
cpandepends="perl-crypt-openssl-dsa perl-net-dns perl-crypt-openssl-rsa cpandepends="perl-crypt-openssl-dsa perl-net-dns perl-crypt-openssl-rsa
perl-crypt-openssl-random perl-digest-bubblebabble perl-mime-base32 perl-crypt-openssl-random perl-digest-bubblebabble perl-mime-base32
perl-crypt-openssl-bignum" perl-crypt-openssl-bignum"
cpanmakedepends=" " cpanmakedepends=""
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="78b84a9b9b078801c51637fb0bb127a3 Net-DNS-SEC-1.03.tar.gz"
sha256sums="7d89ed9a140f80a3ad84799c7b00d17328e18bb763765910af2c661e5e5035e7 Net-DNS-SEC-1.03.tar.gz"
sha512sums="17d9f2125b9ed687791941ea777927daf8cfe4a6a379d02cda499fb01a71606b1c01154a3d4f2f2ffb70f5a658aaf02e64c8e5cc308de8c8e0cc543271ee7bce Net-DNS-SEC-1.03.tar.gz" sha512sums="17d9f2125b9ed687791941ea777927daf8cfe4a6a379d02cda499fb01a71606b1c01154a3d4f2f2ffb70f5a658aaf02e64c8e5cc308de8c8e0cc543271ee7bce Net-DNS-SEC-1.03.tar.gz"

View File

@ -4,7 +4,7 @@
pkgname=perl-net-iptrie pkgname=perl-net-iptrie
_pkgreal=Net-IPTrie _pkgreal=Net-IPTrie
pkgver=0.7 pkgver=0.7
pkgrel=1 pkgrel=2
pkgdesc="Perl module for building IPv4 and IPv6 address space hierarchies" pkgdesc="Perl module for building IPv4 and IPv6 address space hierarchies"
url="http://search.cpan.org/dist/Net-IPTrie/" url="http://search.cpan.org/dist/Net-IPTrie/"
arch="noarch" arch="noarch"
@ -16,25 +16,30 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CV/CVICENTE/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/C/CV/CVICENTE/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
perl Build.PL installdirs=vendor || return 1
cd "$builddir"
perl Build.PL installdirs=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build && ./Build test ./Build
}
check() {
cd "$builddir"
./Build test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
./Build install destdir="$pkgdir" || return 1 ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="c465a27fdac74109b34dfbc271adb90d Net-IPTrie-0.7.tar.gz"
sha256sums="1ccd1eea53a06d0524efc42fd465dfc5997149d77f87d86f1ccf0e2e05d58e05 Net-IPTrie-0.7.tar.gz"
sha512sums="6f1033f078aeed7d76dfc5f7a5a55c02601205c8b3e1626ecee6205e136c3c736cfb658b4f48cd24fba5491f2cb44a793cd942752f03489f40decbf242f80aad Net-IPTrie-0.7.tar.gz" sha512sums="6f1033f078aeed7d76dfc5f7a5a55c02601205c8b3e1626ecee6205e136c3c736cfb658b4f48cd24fba5491f2cb44a793cd942752f03489f40decbf242f80aad Net-IPTrie-0.7.tar.gz"

View File

@ -4,7 +4,7 @@
pkgname=perl-number-compare pkgname=perl-number-compare
_pkgreal=Number-Compare _pkgreal=Number-Compare
pkgver=0.03 pkgver=0.03
pkgrel=0 pkgrel=1
pkgdesc="unknown" pkgdesc="unknown"
url="http://search.cpan.org/dist/Number-Compare/" url="http://search.cpan.org/dist/Number-Compare/"
arch="noarch" arch="noarch"
@ -16,26 +16,31 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="ded4085a8fc96328742785574ca65208 Number-Compare-0.03.tar.gz"
sha256sums="83293737e803b43112830443fb5208ec5208a2e6ea512ed54ef8e4dd2b880827 Number-Compare-0.03.tar.gz"
sha512sums="fc7efb0177bcb84142619b7d8c0252f4548e547650ddbe9cfafaba97b8ae791c20fbffa6f8b01449b9dd217d9914f94bfeaff57cdfdc2c11e2a1456992bd9893 Number-Compare-0.03.tar.gz" sha512sums="fc7efb0177bcb84142619b7d8c0252f4548e547650ddbe9cfafaba97b8ae791c20fbffa6f8b01449b9dd217d9914f94bfeaff57cdfdc2c11e2a1456992bd9893 Number-Compare-0.03.tar.gz"

View File

@ -4,7 +4,7 @@
pkgname=perl-object-insideout pkgname=perl-object-insideout
_pkgreal=Object-InsideOut _pkgreal=Object-InsideOut
pkgver=4.02 pkgver=4.02
pkgrel=0 pkgrel=1
pkgdesc="Comprehensive inside-out object support module" pkgdesc="Comprehensive inside-out object support module"
url="http://search.cpan.org/dist/Object-InsideOut/" url="http://search.cpan.org/dist/Object-InsideOut/"
arch="noarch" arch="noarch"
@ -16,24 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
perl Build.PL installdirs=vendor || return 1
cd "$builddir"
perl Build.PL installdirs=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
./Build && ./Build test ./Build
}
check() {
cd "$builddir"
./Build test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
./Build install destdir="$pkgdir" || return 1 ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="aca3e8b0b15423d22ddfc95868ba5d00 Object-InsideOut-4.02.tar.gz"
sha256sums="e38a2435325d00427977b2fb89b54e61aedcf56f49a0236473ca995967b713ec Object-InsideOut-4.02.tar.gz"
sha512sums="a89be17e0c765e3f0386eba2b945e7923fbf420ee492b1fdc32391dd4a183b21c1aae66998b9b8303b466bb82e54fa5d1518b085730a63f363e4062777d1a9c4 Object-InsideOut-4.02.tar.gz" sha512sums="a89be17e0c765e3f0386eba2b945e7923fbf420ee492b1fdc32391dd4a183b21c1aae66998b9b8303b466bb82e54fa5d1518b085730a63f363e4062777d1a9c4 Object-InsideOut-4.02.tar.gz"

View File

@ -4,35 +4,42 @@
pkgname=perl-ole-storage_lite pkgname=perl-ole-storage_lite
_pkgreal=OLE-Storage_Lite _pkgreal=OLE-Storage_Lite
pkgver=0.19 pkgver=0.19
pkgrel=0 pkgrel=1
pkgdesc="Read and write OLE storage files." pkgdesc="Read and write OLE storage files."
url="http://search.cpan.org/dist/OLE-Storage_Lite/" url="http://search.cpan.org/dist/OLE-Storage_Lite/"
arch="noarch" arch="noarch"
license="GPL PerlArtistic" license="GPL PerlArtistic"
cpandepends="" cpandepends=""
cpanmakedepends=" " cpanmakedepends=""
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }

View File

@ -4,7 +4,7 @@
pkgname=perl-package-variant pkgname=perl-package-variant
_pkgreal=Package-Variant _pkgreal=Package-Variant
pkgver=1.003002 pkgver=1.003002
pkgrel=0 pkgrel=1
pkgdesc="Parameterizable packages" pkgdesc="Parameterizable packages"
url="http://search.cpan.org/dist/Package-Variant/" url="http://search.cpan.org/dist/Package-Variant/"
arch="noarch" arch="noarch"
@ -16,26 +16,31 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MS/MSTROUT/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/M/MS/MSTROUT/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="f898ec7426e051ca4431fd8afed24937 Package-Variant-1.003002.tar.gz"
sha256sums="b2ed849d2f4cdd66467512daa3f143266d6df810c5fae9175b252c57bc1536dc Package-Variant-1.003002.tar.gz"
sha512sums="0f311e73049df9a7a43a3e9eb3e4ba48120d119ab92161a4c0da532625d5705c6ee5b50f57d6b40ded30df82ce13b9dcced28894ddc7ee0068787b782fd33a4a Package-Variant-1.003002.tar.gz" sha512sums="0f311e73049df9a7a43a3e9eb3e4ba48120d119ab92161a4c0da532625d5705c6ee5b50f57d6b40ded30df82ce13b9dcced28894ddc7ee0068787b782fd33a4a Package-Variant-1.003002.tar.gz"

View File

@ -4,13 +4,13 @@
pkgname=perl-path-tiny pkgname=perl-path-tiny
_pkgreal=Path-Tiny _pkgreal=Path-Tiny
pkgver=0.104 pkgver=0.104
pkgrel=0 pkgrel=1
pkgdesc="File path utility" pkgdesc="File path utility"
url="http://search.cpan.org/dist/Path-Tiny/" url="http://search.cpan.org/dist/Path-Tiny/"
arch="noarch" arch="noarch"
license="apache_2_0" license="apache_2_0"
cpandepends="" cpandepends=""
cpanmakedepends=" perl-test-mockrandom perl-test-failwarnings" cpanmakedepends="perl-test-mockrandom perl-test-failwarnings"
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.t
builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
default_prepare || return 1 default_prepare
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
@ -28,7 +28,12 @@ prepare() {
build() { build() {
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {

View File

@ -3,7 +3,7 @@
pkgname=perl-proc-waitstat pkgname=perl-proc-waitstat
_pkgreal=Proc-WaitStat _pkgreal=Proc-WaitStat
pkgver=1.00 pkgver=1.00
pkgrel=1 pkgrel=2
pkgdesc="Perl module interpret and act on wait() status values" pkgdesc="Perl module interpret and act on wait() status values"
url="http://search.cpan.org/dist/Proc-WaitStat/" url="http://search.cpan.org/dist/Proc-WaitStat/"
arch="noarch" arch="noarch"
@ -16,8 +16,9 @@ source="http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/$_pkgreal-$pkgver.tar.
builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
default_prepare
cd "$builddir" cd "$builddir"
default_prepare || return 1
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
@ -25,7 +26,12 @@ prepare() {
build() { build() {
cd "$builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
@ -36,6 +42,4 @@ package() {
rm -fr "$pkgdir"/usr/share/perl5 rm -fr "$pkgdir"/usr/share/perl5
} }
md5sums="b911bd579b6b142391b21de1efa30c95 Proc-WaitStat-1.00.tar.gz"
sha256sums="d07563f5e787909d16e7390241e877f49ab739b1de9d0e2ea1a41bd0bf4474bc Proc-WaitStat-1.00.tar.gz"
sha512sums="7abc1c3771ec560e6138cc7709ca4527a34c897067e13afd57d096d664d6d11a1d80898a955404d8b583972eae8c80689fd8421adaee9bed2601e47afe9ef235 Proc-WaitStat-1.00.tar.gz" sha512sums="7abc1c3771ec560e6138cc7709ca4527a34c897067e13afd57d096d664d6d11a1d80898a955404d8b583972eae8c80689fd8421adaee9bed2601e47afe9ef235 Proc-WaitStat-1.00.tar.gz"

View File

@ -3,38 +3,43 @@
pkgname=perl-provide pkgname=perl-provide
_pkgreal=provide _pkgreal=provide
pkgver=0.03 pkgver=0.03
pkgrel=0 pkgrel=1
pkgdesc="easily choose between different version-specific implementations" pkgdesc="easily choose between different version-specific implementations"
url="http://search.cpan.org/dist/provide/" url="http://search.cpan.org/dist/provide/"
arch="noarch" arch="noarch"
license="GPL PerlArtistic" license="GPL PerlArtistic"
cpandepends="" cpandepends=""
cpanmakedepends=" " cpanmakedepends=""
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BE/BELDEN/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/B/BE/BELDEN/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="213587bbc758179d39c40285d83fe575 provide-0.03.tar.gz"
sha256sums="565c8a5e4b09e6724bf8a2df33a4364e98c05dd7d2835821457a2f787cfe2446 provide-0.03.tar.gz"
sha512sums="d16762c4c2ecc69619904d9eb81cbc75dc253f85bf2c52ec17d08b3fa64ebf1897521e9d60cb541884e9ccf0fe0b51420eb57d4b09daabeda29ea00d8a90f6f1 provide-0.03.tar.gz" sha512sums="d16762c4c2ecc69619904d9eb81cbc75dc253f85bf2c52ec17d08b3fa64ebf1897521e9d60cb541884e9ccf0fe0b51420eb57d4b09daabeda29ea00d8a90f6f1 provide-0.03.tar.gz"

View File

@ -3,7 +3,7 @@
pkgname=perl-readonly pkgname=perl-readonly
_pkgname=Readonly _pkgname=Readonly
pkgver=2.05 pkgver=2.05
pkgrel=0 pkgrel=1
pkgdesc="Facility for creating read-only scalars, arrays, hashes" pkgdesc="Facility for creating read-only scalars, arrays, hashes"
url="https://github.com/sanko/readonly" url="https://github.com/sanko/readonly"
arch="noarch" arch="noarch"
@ -14,21 +14,26 @@ source="https://cpan.metacpan.org/authors/id/S/SA/SANKO/$_pkgname-$pkgver.tar.gz
builddir="$srcdir/$_pkgname-$pkgver" builddir="$srcdir/$_pkgname-$pkgver"
prepare() { prepare() {
default_prepare || return 1 default_prepare
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL --installdirs=vendor || return 1 perl Build.PL --installdirs=vendor
} }
build() { build() {
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build && ./Build test ./Build
}
check() {
cd "$builddir"
./Build test
} }
package() { package() {
cd "$builddir" cd "$builddir"
./Build install --destdir="$pkgdir" || return 1 ./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }

View File

@ -4,38 +4,43 @@
pkgname=perl-regexp-tr pkgname=perl-regexp-tr
_pkgreal=Regexp-Tr _pkgreal=Regexp-Tr
pkgver=0.05 pkgver=0.05
pkgrel=0 pkgrel=1
pkgdesc="Run-time-compiled tr/// objects." pkgdesc="Run-time-compiled tr/// objects."
url="http://search.cpan.org/dist/Regexp-Tr/" url="http://search.cpan.org/dist/Regexp-Tr/"
arch="noarch" arch="noarch"
license="GPL PerlArtistic" license="GPL PerlArtistic"
cpandepends="" cpandepends=""
cpanmakedepends=" " cpanmakedepends=""
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CH/CHIA/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/C/CH/CHIA/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete 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" sha512sums="2ef505f63790146fb57e76da5cea604c62d98b214b5db2eadd617059d29c3a8c7f923a4a5dc1f9152fbe36fea6f069821292b7fa2c38cc6f82fc536909eed5f9 Regexp-Tr-0.05.tar.gz"

View File

@ -4,13 +4,13 @@
pkgname=perl-sort-key pkgname=perl-sort-key
_pkgreal=Sort-Key _pkgreal=Sort-Key
pkgver=1.33 pkgver=1.33
pkgrel=1 pkgrel=2
pkgdesc="the fastest way to sort anything in Perl" pkgdesc="the fastest way to sort anything in Perl"
url="http://search.cpan.org/dist/Sort-Key/" url="http://search.cpan.org/dist/Sort-Key/"
arch="all" arch="all"
license="GPL PerlArtistic" license="GPL PerlArtistic"
cpandepends="" cpandepends=""
cpanmakedepends=" " cpanmakedepends=""
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/S/SA/SALVA/$_pkgreal-$pkgver.tar.
builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
default_prepare || return 1 default_prepare
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
@ -28,15 +28,18 @@ prepare() {
build() { build() {
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="a37ab0da0cfdc26e57b4c79e39f6d98f Sort-Key-1.33.tar.gz"
sha256sums="ed6a4ccfab094c9cd164f564024e98bd21d94f4312ccac4d6246d22b34081acf Sort-Key-1.33.tar.gz"
sha512sums="cf87cd2f5c0eea662dbdaf7faed5646ebd63925c71a093a79a9980d6de290b1128443954675893f263961e68d1db0e9e4ca1412a2734ce8dcdd271bcf4f1be17 Sort-Key-1.33.tar.gz" sha512sums="cf87cd2f5c0eea662dbdaf7faed5646ebd63925c71a093a79a9980d6de290b1128443954675893f263961e68d1db0e9e4ca1412a2734ce8dcdd271bcf4f1be17 Sort-Key-1.33.tar.gz"

View File

@ -4,7 +4,7 @@
pkgname=perl-spiffy pkgname=perl-spiffy
_pkgreal=Spiffy _pkgreal=Spiffy
pkgver=0.46 pkgver=0.46
pkgrel=0 pkgrel=1
pkgdesc="Spiffy Perl Interface Framework For You" pkgdesc="Spiffy Perl Interface Framework For You"
url="http://search.cpan.org/dist/Spiffy/" url="http://search.cpan.org/dist/Spiffy/"
arch="noarch" arch="noarch"
@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/I/IN/INGY/$_pkgreal-$pkgver.tar.g
builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
default_prepare || return 1 default_prepare
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
@ -28,7 +28,12 @@ prepare() {
build() { build() {
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
@ -37,6 +42,4 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="2ec7007c111a6bc2775bb7c57673a24b Spiffy-0.46.tar.gz"
sha256sums="8f58620a8420255c49b6c43c5ff5802bd25e4f09240c51e5bf2b022833d41da3 Spiffy-0.46.tar.gz"
sha512sums="a1fb02bae4a6edab564c05af2f1b2caaf996d433ec054e07e75a53e88216c46cf14db87a2abdfc9c74f73791267f69129a86bfdaa77492f941104143ca7b8154 Spiffy-0.46.tar.gz" sha512sums="a1fb02bae4a6edab564c05af2f1b2caaf996d433ec054e07e75a53e88216c46cf14db87a2abdfc9c74f73791267f69129a86bfdaa77492f941104143ca7b8154 Spiffy-0.46.tar.gz"

View File

@ -4,7 +4,7 @@
pkgname=perl-spreadsheet-parseexcel pkgname=perl-spreadsheet-parseexcel
_pkgreal=Spreadsheet-ParseExcel _pkgreal=Spreadsheet-ParseExcel
pkgver=0.65 pkgver=0.65
pkgrel=0 pkgrel=1
pkgdesc="Read information from an Excel file." pkgdesc="Read information from an Excel file."
url="http://search.cpan.org/dist/Spreadsheet-ParseExcel/" url="http://search.cpan.org/dist/Spreadsheet-ParseExcel/"
arch="noarch" arch="noarch"
@ -16,26 +16,31 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DO/DOUGW/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/D/DO/DOUGW/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="4b8857e3a391d86501c1b742b459ac9e Spreadsheet-ParseExcel-0.65.tar.gz"
sha256sums="6ec4cb429bd58d81640fe12116f435c46f51ff1040c68f09cc8b7681c1675bec Spreadsheet-ParseExcel-0.65.tar.gz"
sha512sums="a57be764a9781d1e219d1aab940a9b834d1ddf90ebb4966eaeba86afea3de03617fbdeda67d9bc2bedd8651cc3feafd46905021150bbcd68cbc7453865877637 Spreadsheet-ParseExcel-0.65.tar.gz" sha512sums="a57be764a9781d1e219d1aab940a9b834d1ddf90ebb4966eaeba86afea3de03617fbdeda67d9bc2bedd8651cc3feafd46905021150bbcd68cbc7453865877637 Spreadsheet-ParseExcel-0.65.tar.gz"

View File

@ -4,7 +4,7 @@
pkgname=perl-strictures pkgname=perl-strictures
_pkgreal=strictures _pkgreal=strictures
pkgver=2.000002 pkgver=2.000002
pkgrel=0 pkgrel=1
pkgdesc="unknown" pkgdesc="unknown"
url="http://search.cpan.org/dist/strictures/" url="http://search.cpan.org/dist/strictures/"
arch="noarch" arch="noarch"
@ -16,26 +16,31 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/strictures-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/strictures-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" default_prepare
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="fb1fada8260992bc85e126c21ffcc6d5 strictures-2.000002.tar.gz"
sha256sums="130355dcb3afd8c3c8213c24b924e71deb7e1e1197da8f90c5ae191766aa4100 strictures-2.000002.tar.gz"
sha512sums="30e7d02b4a240ef201e80f49066205f8563efade402bded4d0a818b0bde7c3bc5c4378e65b4e537ebd22d97ccab44e245764862eba5919770340d3811de346ef strictures-2.000002.tar.gz" sha512sums="30e7d02b4a240ef201e80f49066205f8563efade402bded4d0a818b0bde7c3bc5c4378e65b4e537ebd22d97ccab44e245764862eba5919770340d3811de346ef strictures-2.000002.tar.gz"

View File

@ -4,38 +4,41 @@
pkgname=perl-sub-exporter pkgname=perl-sub-exporter
_pkgreal=Sub-Exporter _pkgreal=Sub-Exporter
pkgver=0.987 pkgver=0.987
pkgrel=0 pkgrel=1
pkgdesc="a sophisticated exporter for custom-built routines" pkgdesc="a sophisticated exporter for custom-built routines"
url="http://search.cpan.org/dist/Sub-Exporter/" url="http://search.cpan.org/dist/Sub-Exporter/"
arch="noarch" arch="noarch"
license="GPL PerlArtistic" license="GPL PerlArtistic"
cpandepends="perl-data-optlist perl-sub-install perl-params-util perl-test-pod" cpandepends="perl-data-optlist perl-sub-install perl-params-util perl-test-pod"
cpanmakedepends=" " cpanmakedepends=""
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="5332d269a7ba387773fcd140b72a0ed2 Sub-Exporter-0.987.tar.gz"
sha256sums="543cb2e803ab913d44272c7da6a70bb62c19e467f3b12aaac4c9523259b083d6 Sub-Exporter-0.987.tar.gz"
sha512sums="6b682d27a0df8ce971ea48aeca5162e1c70929c51cf27119b30361477876b0b86ecb15ab13a6c3cbe5bb85be9e600589fb9e3c9c4e94bad3fc05b675d293adad Sub-Exporter-0.987.tar.gz" sha512sums="6b682d27a0df8ce971ea48aeca5162e1c70929c51cf27119b30361477876b0b86ecb15ab13a6c3cbe5bb85be9e600589fb9e3c9c4e94bad3fc05b675d293adad Sub-Exporter-0.987.tar.gz"

View File

@ -4,7 +4,7 @@
pkgname=perl-sub-install pkgname=perl-sub-install
_pkgreal=Sub-Install _pkgreal=Sub-Install
pkgver=0.928 pkgver=0.928
pkgrel=0 pkgrel=1
pkgdesc="install subroutines into packages easily" pkgdesc="install subroutines into packages easily"
url="http://search.cpan.org/dist/Sub-Install/" url="http://search.cpan.org/dist/Sub-Install/"
arch="noarch" arch="noarch"
@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="e1ce4f9cb6b2f6b8778b036c31afa5ab Sub-Install-0.928.tar.gz"
sha256sums="61e567a7679588887b7b86d427bc476ea6d77fffe7e0d17d640f89007d98ef0f Sub-Install-0.928.tar.gz"
sha512sums="3f25df9f5992075968830d4235e9f6520c526331b9180391e41483241d43253a61ad8dc381d77aaeb6c6fb841cfc5c097598e62abb46208894275c393a133ade Sub-Install-0.928.tar.gz" sha512sums="3f25df9f5992075968830d4235e9f6520c526331b9180391e41483241d43253a61ad8dc381d77aaeb6c6fb841cfc5c097598e62abb46208894275c393a133ade Sub-Install-0.928.tar.gz"

View File

@ -24,12 +24,17 @@ prepare() {
build() { build() {
cd "$builddir" cd "$builddir"
make && make test || return 1 make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
@ -38,6 +43,4 @@ doc() {
replaces="perl-doc" replaces="perl-doc"
} }
md5sums="59dfb279f78a5ff587ba2ee8989b13e8 Sys-Syslog-0.35.tar.gz"
sha256sums="fe28e47b70b77aaae754385fe1470d174289e7b6908efa247d2e52486516fbb7 Sys-Syslog-0.35.tar.gz"
sha512sums="94f35e3008e1f01af7c02f4672c0b85fb9d92bd51ecddbd064d08e6fc81a203aef7655386174e6b38814b1500a21553324985fe169e3dc8d8b9829590bceffc9 Sys-Syslog-0.35.tar.gz" sha512sums="94f35e3008e1f01af7c02f4672c0b85fb9d92bd51ecddbd064d08e6fc81a203aef7655386174e6b38814b1500a21553324985fe169e3dc8d8b9829590bceffc9 Sys-Syslog-0.35.tar.gz"