aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-crypt-openssl-dsa/APKBUILD
blob: 2c814bd3e695a7a79f355a0474c1e5a6cb51c787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-crypt-openssl-dsa
_pkgreal=Crypt-OpenSSL-DSA
pkgver=0.16
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/Crypt-OpenSSL-DSA/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
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"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="a38d6844f92551aefc808ddc0953a18f  Crypt-OpenSSL-DSA-0.16.tar.gz"
sha256sums="e3fa8d642e98a2ccd50eba734efe258b8ff413df6c64cb18603c212d8383bc44  Crypt-OpenSSL-DSA-0.16.tar.gz"
sha512sums="c82370d4f2054e51b17063333d2a6b32504e9bdcacf7f145ffa8828b93e4251d0ba5d4acb6eb7b81e05d0c43a8365d47c405245cb2af3eea2566a7ab46c42596  Crypt-OpenSSL-DSA-0.16.tar.gz"