diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2013-09-05 18:02:08 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2013-09-09 11:08:23 +0000 |
commit | 590636729f538fd2d59e32e9efb3c25fc3082645 (patch) | |
tree | 78dea1278b9b1434a2db15f65650757ea0fe839c | |
parent | 2c7c152be74611a869692bc5c8f3b464c8b0b99c (diff) | |
download | alpine_aports-590636729f538fd2d59e32e9efb3c25fc3082645.tar.bz2 alpine_aports-590636729f538fd2d59e32e9efb3c25fc3082645.tar.xz alpine_aports-590636729f538fd2d59e32e9efb3c25fc3082645.zip |
testing/perl-extutils-parsexs: new aport
-rw-r--r-- | testing/perl-extutils-parsexs/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-extutils-parsexs/APKBUILD b/testing/perl-extutils-parsexs/APKBUILD new file mode 100644 index 0000000000..5dabdb1af8 --- /dev/null +++ b/testing/perl-extutils-parsexs/APKBUILD | |||
@@ -0,0 +1,41 @@ | |||
1 | # Automatically generated by apkbuild-cpan, template 1 | ||
2 | # Contributor: Francesco Colista <francesco.colista@gmail.com> | ||
3 | # Maintainer: Francesco Colista <francesco.colista@gmail.com> | ||
4 | pkgname=perl-extutils-parsexs | ||
5 | _pkgreal=ExtUtils-ParseXS | ||
6 | pkgver=3.22 | ||
7 | pkgrel=0 | ||
8 | pkgdesc="converts Perl XS code into C code" | ||
9 | url="http://search.cpan.org/dist/ExtUtils-ParseXS/" | ||
10 | arch="noarch" | ||
11 | license="GPL PerlArtistic" | ||
12 | cpandepends="" | ||
13 | cpanmakedepends="" | ||
14 | depends="$cpandepends" | ||
15 | makedepends="perl-dev $cpanmakedepends" | ||
16 | subpackages="$pkgname-doc" | ||
17 | source="http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/$_pkgreal-$pkgver.tar.gz" | ||
18 | |||
19 | _builddir="$srcdir/$_pkgreal-$pkgver" | ||
20 | |||
21 | prepare() { | ||
22 | cd "$_builddir" | ||
23 | export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` | ||
24 | PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor | ||
25 | } | ||
26 | |||
27 | build() { | ||
28 | cd "$_builddir" | ||
29 | export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` | ||
30 | make && make test | ||
31 | } | ||
32 | |||
33 | package() { | ||
34 | cd "$_builddir" | ||
35 | make DESTDIR="$pkgdir" install || return 1 | ||
36 | find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete | ||
37 | } | ||
38 | |||
39 | md5sums="bf1c862d9b9806eb85408bc6c64583d2 ExtUtils-ParseXS-3.22.tar.gz" | ||
40 | sha256sums="04e57d4f080f71b4ea1e213c9bbf5391d5652f77ac82f3c5dbc480545d1f290e ExtUtils-ParseXS-3.22.tar.gz" | ||
41 | sha512sums="ef303f5b77e66e9ca4c8c000857a0dc87432b4d53fd70b80ade53c4dd1bcb2bb75cb736c1c2dfdea3233979148c8e157003a7d5d4cb83f1fff4cc2692d13f852 ExtUtils-ParseXS-3.22.tar.gz" | ||