diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:18:52 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:19:55 +0000 |
commit | ce826225e326bb478d44fa17a08fd5bd68060738 (patch) | |
tree | 987a9baabeddb7b9d0cde3cf714be9a6bdd0bf22 /testing/perl-xml-bare/APKBUILD | |
parent | 1e1d7eb3c2d03f4142707ae83cc1d3ff7f77d015 (diff) | |
download | aports-ce826225e326bb478d44fa17a08fd5bd68060738.tar.bz2 aports-ce826225e326bb478d44fa17a08fd5bd68060738.tar.xz |
testing/perl-xml-bare: new aport
Diffstat (limited to 'testing/perl-xml-bare/APKBUILD')
-rw-r--r-- | testing/perl-xml-bare/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-xml-bare/APKBUILD b/testing/perl-xml-bare/APKBUILD new file mode 100644 index 0000000000..9ae9e6e772 --- /dev/null +++ b/testing/perl-xml-bare/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: +pkgname=perl-xml-bare +_pkgreal=XML-Bare +pkgver=0.53 +pkgrel=0 +pkgdesc="A minimal XML parser / schema checker / pretty-printer using C internally." +url="http://search.cpan.org/dist/XML-Bare/" +arch="all" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/C/CO/CODECHILD/$_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="5e9c3dbe4368034fcff392333203339b XML-Bare-0.53.tar.gz" +sha256sums="865e198e98d904be1683ef5a53a4948f02dabdacde59fc554a082ffbcc5baefd XML-Bare-0.53.tar.gz" +sha512sums="e765206e5c98ed3a0c29be3a323e25beaa712489d0461e2e7269f5f3383fa805ba3829a9ed4d31cd86f35400c321f8cf519162cc41f52f8ba6992c7016f63520 XML-Bare-0.53.tar.gz" |