Commit b1274f16 authored by Roberto Oliveira's avatar Roberto Oliveira

community/perl-[t-y]: modernize APKBUILD

Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
parent 4c6f8e1f
......@@ -4,7 +4,7 @@
pkgname=perl-template-toolkit
_pkgreal=Template-Toolkit
pkgver=2.27
pkgrel=1
pkgrel=2
pkgdesc="comprehensive template processing system"
url="http://search.cpan.org/dist/Template-Toolkit/"
arch="all"
......@@ -16,27 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AB/ABW/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
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"
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
......
......@@ -4,7 +4,7 @@
pkgname=perl-test-base
_pkgreal=Test-Base
pkgver=0.88
pkgrel=0
pkgrel=1
pkgdesc="A Data Driven Testing Framework"
url="http://search.cpan.org/dist/Test-Base/"
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"
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
......@@ -28,15 +28,18 @@ prepare() {
build() {
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
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="ced0cd86b099f9fd2cd73df1f46ab5e9 Test-Base-0.88.tar.gz"
sha256sums="52368cc5a9cbbc4eaba33ed820672f92001b73d8bcba0bb95d5fdb1d370b9039 Test-Base-0.88.tar.gz"
sha512sums="59725ce38a55a82a336942ea36c0782560d4b3b04fbe6e4550f6e21074f18d622325d87bb2d7db0475b58999d8f9ee55579c4349004a5434b3c1980366dd71df Test-Base-0.88.tar.gz"
......@@ -4,7 +4,7 @@
pkgname=perl-test-differences
_pkgreal=Test-Differences
pkgver=0.64
pkgrel=0
pkgrel=1
pkgdesc="Test strings and data structures and show differences if not ok"
url="http://search.cpan.org/dist/Test-Differences/"
arch="noarch"
......@@ -15,25 +15,30 @@ depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
perl Build.PL installdirs=vendor || return 1
default_prepare
cd "$builddir"
perl Build.PL installdirs=vendor
}
build() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build && ./Build test
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build
}
check() {
cd "$builddir"
./Build test
}
package() {
cd "$_builddir"
./Build install destdir="$pkgdir" || return 1
cd "$builddir"
./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="ecfda620fe133e36a6e392d94ab8424d Test-Differences-0.64.tar.gz"
sha256sums="9f459dd9c2302a0a73e2f5528a0ce7d09d6766f073187ae2c69e603adf2eb276 Test-Differences-0.64.tar.gz"
sha512sums="118a4b8e3f61f64d6676c82913bb605a843a408f3fc5d960b40cc86f10423380a203b2a5604e15ba8d4e0cff96af88b551fba1c7aa2ada3c0ef408a27ee5f069 Test-Differences-0.64.tar.gz"
......@@ -4,13 +4,13 @@
pkgname=perl-test-failwarnings
_pkgreal=Test-FailWarnings
pkgver=0.008
pkgrel=0
pkgrel=1
pkgdesc="Add test failures if warnings are caught"
url="http://search.cpan.org/dist/Test-FailWarnings/"
arch="noarch"
license="apache_2_0"
cpandepends=""
cpanmakedepends=" perl-capture-tiny "
cpanmakedepends="perl-capture-tiny"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
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"
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
......@@ -28,7 +28,12 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
make
}
check() {
cd "$builddir"
make test
}
package() {
......@@ -37,6 +42,4 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="c03d51f550dbfd9945722ff7f4c32717 Test-FailWarnings-0.008.tar.gz"
sha256sums="da34ef9029f6849d6026201d49127d054ee6ac4b979c82210315f5721964a96f Test-FailWarnings-0.008.tar.gz"
sha512sums="7bffcc18191326095d99ad01be6426f4d9d927f769a156318f9abfea67da6adfecb657bad89390740c9f531fe69c717afa1d250258eed63d127bf10cbbf2bd51 Test-FailWarnings-0.008.tar.gz"
......@@ -3,7 +3,7 @@
pkgname=perl-test-mock-guard
_pkgname=Test-Mock-Guard
pkgver=0.10
pkgrel=0
pkgrel=1
pkgdesc="Simple mock test library using RAII"
url="https://github.com/zigorou/p5-test-mock-guard"
arch="noarch"
......@@ -14,24 +14,27 @@ source="http://search.cpan.org/CPAN/authors/id/X/XA/XAICRON/$_pkgname-$pkgver.ta
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL --installdirs=vendor || return 1
perl Build.PL --installdirs=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build && ./Build test
./Build
}
check() {
cd "$builddir"
./Build test
}
package() {
cd "$builddir"
./Build install --destdir="$pkgdir" || return 1
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="b2866485cc29c787f85793279e2f2360 Test-Mock-Guard-0.10.tar.gz"
sha256sums="7f228a63f8d6ceb92aa784080a13e85073121b2835eca06d794f9709950dbd3d Test-Mock-Guard-0.10.tar.gz"
sha512sums="17a8cbfea9e33a625ad5a33b40b5a799715d59b57eb4030a9d694fdd1e7361667f326888577291f0807852b86c04b97384ab8a48d95eb92158d35e14131068cc Test-Mock-Guard-0.10.tar.gz"
......@@ -4,7 +4,7 @@
pkgname=perl-test-mockrandom
_pkgreal=Test-MockRandom
pkgver=1.01
pkgrel=0
pkgrel=1
pkgdesc="Replaces random number generation with non-random number generation"
url="http://search.cpan.org/dist/Test-MockRandom/"
arch="noarch"
......@@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.t
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
......@@ -28,15 +28,18 @@ prepare() {
build() {
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
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="5ea7e2ec70776129993721f7632d04da Test-MockRandom-1.01.tar.gz"
sha256sums="2614930d84fc5deac39afbc1ee86ccd39b221507f27d4ee493ca26e5c921cce0 Test-MockRandom-1.01.tar.gz"
sha512sums="e222bd0d3d7673b403e80d1633ddaca0ee35f96f2245e8df859d661edc7efc09b9a96d3718f25b6614395d1f24d66c9498e842cec476cf8c5b12464d585f85e7 Test-MockRandom-1.01.tar.gz"
......@@ -3,7 +3,7 @@
pkgname=perl-test-most
_pkgreal=Test-Most
pkgver=0.35
pkgrel=0
pkgrel=1
pkgdesc="unknown"
url="http://search.cpan.org/dist/Test-Most/"
arch="noarch"
......@@ -15,26 +15,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/O/OV/OVID/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
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="03dbabd34d6f40af8bd47f5fbb0c6989 Test-Most-0.35.tar.gz"
sha256sums="9897a6f4d751598d2ed1047e01c1554b01d0f8c96c45e7e845229782bf6f657f Test-Most-0.35.tar.gz"
sha512sums="1b2d201811e59d7afce47ff5f7da67c170d4685ffbec23360757b5cacc9fe72fc82609bc46cc9d8e351fdb75715696457c201dd94fadaeca70a6f31690236291 Test-Most-0.35.tar.gz"
......@@ -4,7 +4,7 @@
pkgname=perl-test-resub
_pkgreal=Test-Resub
pkgver=2.03
pkgrel=0
pkgrel=1
pkgdesc="Lexically scoped monkey patching for testing"
url="http://search.cpan.org/dist/Test-Resub/"
arch="noarch"
......@@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KO/KOLYA/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
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="8af92b5ec6f3275c88f1a17616d8e8ae Test-Resub-2.03.tar.gz"
sha256sums="5bc04e7ff90b01c8677b0c3ddaf1be9382c6ace55ab25b0f72e3f935e570da52 Test-Resub-2.03.tar.gz"
sha512sums="f8f5a51adc21296ee7902f029a1aeaf6c34d2c9ced908dad7ffe09b7256d05d222429aab47d5138e7b733456218441a4ea106e16968267ee3b4ad36850244c68 Test-Resub-2.03.tar.gz"
......@@ -4,7 +4,7 @@
pkgname=perl-test-weaken
_pkgreal=Test-Weaken
pkgver=3.022000
pkgrel=0
pkgrel=1
pkgdesc="Test that freed memory objects were, indeed, freed"
url="http://search.cpan.org/dist/Test-Weaken/"
arch="noarch"
......@@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
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="67aa37a1de788bf40abf7dd07c787f6a Test-Weaken-3.022000.tar.gz"
sha256sums="2631a87121310262e0e96107a6fa0ed69487b7701520773bee5fa9accc295f5b Test-Weaken-3.022000.tar.gz"
sha512sums="07ed16a29c3de052cb0f5884fc06715e10e6214e46b4ed7f7d8524931da293a903ae283e2935c109ea1be9336aeb5d092403249d60730624c590e9e54b38ff1b Test-Weaken-3.022000.tar.gz"
......@@ -4,7 +4,7 @@
pkgname=perl-test-yaml
_pkgreal=Test-YAML
pkgver=1.06
pkgrel=0
pkgrel=1
pkgdesc="Testing Module for YAML Implementations"
url="http://search.cpan.org/dist/Test-YAML/"
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"
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
......@@ -28,7 +28,12 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
make
}
check() {
cd "$builddir"
make test
}
package() {
......@@ -37,6 +42,4 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="92e6ea57576428095fe3c9b8e00e6f29 Test-YAML-1.06.tar.gz"
sha256sums="27376103163c12d7d13ae45bf22caf5a0c38478362425bf68613c3748f76b943 Test-YAML-1.06.tar.gz"
sha512sums="f6fe4bf46a8cc5ea92b5275cc704e79266b11769bd476888b202540a6d9a23a59a2550503afd88a72f9832355e2b48983f6a31f60db07abe5b0e15f4e74ae2e2 Test-YAML-1.06.tar.gz"
......@@ -4,7 +4,7 @@
pkgname=perl-text-bibtex
_pkgreal=Text-BibTeX
pkgver=0.78
pkgrel=1
pkgrel=2
pkgdesc="Perl module for Text-BibTeX"
url="http://search.cpan.org/dist/Text-BibTeX/"
arch="all"
......@@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/$_pkgreal-$pkgver.tar.g
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
if [ -e Build.PL ]; then
......@@ -29,17 +29,20 @@ prepare() {
}
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build && ./Build test
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build
}
check() {
cd "$builddir"
./Build test
}
package() {
cd "$builddir"
./Build install destdir="$pkgdir" || return 1
./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="551a25463dbf6349df9a158484d5a6c5 Text-BibTeX-0.78.tar.gz"
sha256sums="53036462b539ee7401eecb38d8fb78f8c6b724917890aa2a243ab176461adad1 Text-BibTeX-0.78.tar.gz"
sha512sums="b888e2273db40a104a1206462b172587140389aa69eb725db589f137a532b87958182bf31734f873bc5f1dec2f6bedc6ed93c0e40ed82c014a0aff3f573242b5 Text-BibTeX-0.78.tar.gz"
......@@ -4,7 +4,7 @@
pkgname=perl-text-diff
_pkgreal=Text-Diff
pkgver=1.45
pkgrel=0
pkgrel=1
pkgdesc="Perform diffs on files and record sets"
url="http://search.cpan.org/dist/Text-Diff/"
arch="noarch"
......@@ -16,21 +16,26 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$_builddir"
make && make test
cd "$builddir"
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
}
......
......@@ -4,7 +4,7 @@
pkgname=perl-text-glob
_pkgreal=Text-Glob
pkgver=0.11
pkgrel=0
pkgrel=1
pkgdesc="match globbing patterns against text"
url="http://search.cpan.org/dist/Text-Glob/"
arch="noarch"
......@@ -16,10 +16,10 @@ makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
cd "$builddir"
if [ -e Build.PL ]; then
perl Build.PL installdirs=vendor || return 1
else
......@@ -28,13 +28,18 @@ prepare() {
}
build() {
cd "$_builddir"
make && make test
cd "$builddir"
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
}
......
......@@ -4,7 +4,7 @@
pkgname=perl-text-roman
_pkgreal=Text-Roman
pkgver=3.5
pkgrel=0
pkgrel=1
pkgdesc="Allows conversion between Roman and Arabic algarisms."
url="http://search.cpan.org/dist/Text-Roman/"
arch="noarch"
......@@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/S/SY/SYP/$_pkgreal-$pkgver.tar.gz
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
......@@ -28,7 +28,12 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
make
}
check() {
cd "$builddir"
make test
}
package() {
......@@ -37,6 +42,4 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="1f6b09c0cc1f4425b565ff787a39fd83 Text-Roman-3.5.tar.gz"
sha256sums="cb4a08a3b151802ffb2fce3258a416542ab81db0f739ee474a9583ffb73e046a Text-Roman-3.5.tar.gz"
sha512sums="597ca054094f58c0983c66ce2b22dbc4d69861b02495663987e6b66dc0044a0d7e18e51ef817ed3c76832d283c01c6f9f51e68af7cb6b186b27553b5a877bc33 Text-Roman-3.5.tar.gz"
......@@ -4,7 +4,7 @@
pkgname=perl-tie-hash-method
_pkgreal=Tie-Hash-Method
pkgver=0.02
pkgrel=0
pkgrel=1
pkgdesc="Tied hash with specific methods overriden by callbacks"
url="http://search.cpan.org/dist/Tie-Hash-Method/"
arch="noarch"
......@@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/Y/YV/YVES/$_pkgreal-$pkgver.tar.g
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
......@@ -28,15 +28,18 @@ prepare() {
build() {
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
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="d7ca97ed34a31ae9dc90f666be5f1151 Tie-Hash-Method-0.02.tar.gz"
sha256sums="d513fbb51413f7ca1e64a1bdce6194df7ec6076dea55066d67b950191eec32a9 Tie-Hash-Method-0.02.tar.gz"
sha512sums="e32e911310dfbe066167a8750f9e9a4c5b277c4666addaf3a6b00851ef47e190c88195c394b8778b38e570001ada38f00d78b2ca4fa32498bf8fbb1f94b82424 Tie-Hash-Method-0.02.tar.gz"
......@@ -4,7 +4,7 @@
pkgname=perl-try-tiny
_pkgreal=Try-Tiny
pkgver=0.28
pkgrel=0
pkgrel=1
pkgdesc="minimal try/catch with proper preservation of $@"
url="http://search.cpan.org/dist/Try-Tiny/"
arch="noarch"
......@@ -16,23 +16,28 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
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
}
......
......@@ -4,7 +4,7 @@
pkgname=perl-unicode-string
_pkgreal=Unicode-String
pkgver=2.09
pkgrel=5
pkgrel=6
pkgdesc="String of Unicode characters for perl (UCS2/UTF16)"
url="http://search.cpan.org/dist/Unicode-String/"
arch="all"
......@@ -18,34 +18,32 @@ source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.g
perl-Unicode-String-2.09-undefined.patch
"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
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() {