diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 07:14:17 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 07:14:17 +0000 |
commit | 47ed8705bc8fc39cb694f5208bb4dbb84f1809d8 (patch) | |
tree | e93e169196fa211ffa9f81a9ed7be52f6c00295c /community/perl-xml-treepp/APKBUILD | |
parent | 586828830a349a6c1ee486a5b6a39314158ee8b0 (diff) | |
download | aports-47ed8705bc8fc39cb694f5208bb4dbb84f1809d8.tar.bz2 aports-47ed8705bc8fc39cb694f5208bb4dbb84f1809d8.tar.xz |
community/perl-xml-treepp: moved from testing
Diffstat (limited to 'community/perl-xml-treepp/APKBUILD')
-rw-r--r-- | community/perl-xml-treepp/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-xml-treepp/APKBUILD b/community/perl-xml-treepp/APKBUILD new file mode 100644 index 0000000000..3a2c0c5696 --- /dev/null +++ b/community/perl-xml-treepp/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-xml-treepp +_pkgreal=XML-TreePP +pkgver=0.43 +pkgrel=0 +pkgdesc="Pure Perl implementation for parsing/writing XML documents" +url="http://search.cpan.org/dist/XML-TreePP/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-libwww" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/K/KA/KAWASAKI/$_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="f69693066e52591bf1142d3f4e6d37e5 XML-TreePP-0.43.tar.gz" +sha256sums="7fbe2d6430860059894aeeebf75d4cacf1bf8d7b75294eb87d8e1502f81bd760 XML-TreePP-0.43.tar.gz" +sha512sums="4289a0a8100ef15f62f0e303f13094371ac6f1b54d887be1ed7e2ea31d7f1f6fc28d4234cf96458074137f756db3fe452ded170d3ee576f7eb2cfc9996cc31d1 XML-TreePP-0.43.tar.gz" |