aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-24 12:50:40 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-24 12:50:40 +0000
commitf8a9562ffc2e01411a552bd9b58000a42c0758c5 (patch)
treeba3772c32e4b2d61fe1586bb5b1c6e0107e2a651
parentb7604327e738fd36f3b6fea57305586acb098005 (diff)
downloadaports-f8a9562ffc2e01411a552bd9b58000a42c0758c5.tar.gz
aports-f8a9562ffc2e01411a552bd9b58000a42c0758c5.tar.bz2
aports-f8a9562ffc2e01411a552bd9b58000a42c0758c5.tar.xz
community/perl-crypt-openssl-dsa: modernize and add package description
-rw-r--r--community/perl-crypt-openssl-dsa/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/community/perl-crypt-openssl-dsa/APKBUILD b/community/perl-crypt-openssl-dsa/APKBUILD
index 52260ba749..f2238b5802 100644
--- a/community/perl-crypt-openssl-dsa/APKBUILD
+++ b/community/perl-crypt-openssl-dsa/APKBUILD
@@ -4,38 +4,41 @@
pkgname=perl-crypt-openssl-dsa
_pkgreal=Crypt-OpenSSL-DSA
pkgver=0.17
-pkgrel=3
-pkgdesc="unknown"
+pkgrel=4
+pkgdesc="Digital Signature Algorithm using OpenSSL"
url="http://search.cpan.org/dist/Crypt-OpenSSL-DSA/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev libressl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KM/KMX/$_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="36670ab60cede9908d6e1d8f051365e7 Crypt-OpenSSL-DSA-0.17.tar.gz"
-sha256sums="0cde79ebca56a6ad36f18d994063bf9f7898216a5833af543f04522bb0b4d73e Crypt-OpenSSL-DSA-0.17.tar.gz"
sha512sums="9d4c634ccad1cef7012e2defca3793f8f516a321fdd848acde458c0b352f932c8e4bc61b4e0e977453dbe6cab87284c3ea42c33bc33f7a17a5bddd12f2eaaf5a Crypt-OpenSSL-DSA-0.17.tar.gz"