aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/perl-crypt-cbc/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/community/perl-crypt-cbc/APKBUILD b/community/perl-crypt-cbc/APKBUILD
index cdca8baf7c..1f6645b7fa 100644
--- a/community/perl-crypt-cbc/APKBUILD
+++ b/community/perl-crypt-cbc/APKBUILD
@@ -4,38 +4,41 @@
pkgname=perl-crypt-cbc
_pkgreal=Crypt-CBC
pkgver=2.33
-pkgrel=0
-pkgdesc="unknown"
+pkgrel=1
+pkgdesc="Encrypt Data with Cipher Block Chaining Mode"
url="http://search.cpan.org/dist/Crypt-CBC/"
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/L/LD/LDS/$_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="3db5117d60df67e3b400fe367e716be0 Crypt-CBC-2.33.tar.gz"
-sha256sums="6a70de21b6cc7f2b100067e8e188db966e9a8001b5db6fa976e7cb5b294ae645 Crypt-CBC-2.33.tar.gz"
sha512sums="5db17905c38b46f496617095655bb48e4737d6813c794f65dce88556f177caee1d5f669ddb0da3ad4b00e11ff1bc0af91fd4cd312ed2fd8497e410ef11176244 Crypt-CBC-2.33.tar.gz"