diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-02-01 10:39:16 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-02-01 10:39:16 +0000 |
commit | dcb44a5c8852275ed45d45bca200b8ef8868c967 (patch) | |
tree | e3970e66a3ecf544a3653cce8e0a699a0e98638f /testing/perl-text-vcard/APKBUILD | |
parent | ae6224d7d0277196e98653dd2e15c408fe021d13 (diff) | |
download | aports-dcb44a5c8852275ed45d45bca200b8ef8868c967.tar.bz2 aports-dcb44a5c8852275ed45d45bca200b8ef8868c967.tar.xz |
testing/perl-text-vcard: new aport
Diffstat (limited to 'testing/perl-text-vcard/APKBUILD')
-rw-r--r-- | testing/perl-text-vcard/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/perl-text-vcard/APKBUILD b/testing/perl-text-vcard/APKBUILD new file mode 100644 index 0000000000..817aad069e --- /dev/null +++ b/testing/perl-text-vcard/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-text-vcard +_pkgreal=Text-vCard +pkgver=3.09 +pkgrel=0 +pkgdesc="Edit and create vCards (RFC 2426)" +url="http://search.cpan.org/dist/Text-vCard/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-uri perl-path-tiny perl-moo perl-text-vfile-asdata perl-unicode-linebreak" +cpanmakedepends=" perl-test-most perl-directory-scratch " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/L/LL/LLAP/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + 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="d23c610e2159b7d4034275f2bfe27704 Text-vCard-3.09.tar.gz" +sha256sums="c1ff3b0b14a86d8146808bdc59d8d207f220120309ccf16decfb0dc236c144b0 Text-vCard-3.09.tar.gz" +sha512sums="fe28065bab454c5a41907c9e59c809b4de58335407adcfa502dcd4a0b5201ca39a45f7006521c3b4599b1daf9323b634c5925fbc29945411f45bccdc05263192 Text-vCard-3.09.tar.gz" |