diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-12 15:17:00 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-12 15:18:17 +0000 |
commit | 8f8c8a53911c2e47bc8788c819e57720f8ce9dc8 (patch) | |
tree | b2f402a737c2b05e3e54dd3b7d42403147df2959 | |
parent | 636ebe28c006a5107c9cdc71f14f947bcd8895ce (diff) | |
download | aports-8f8c8a53911c2e47bc8788c819e57720f8ce9dc8.tar.bz2 aports-8f8c8a53911c2e47bc8788c819e57720f8ce9dc8.tar.xz |
testing/perl-xml-libxml-simple: new aport
-rw-r--r-- | testing/perl-xml-libxml-simple/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/perl-xml-libxml-simple/APKBUILD b/testing/perl-xml-libxml-simple/APKBUILD new file mode 100644 index 0000000000..ef74c4ffd3 --- /dev/null +++ b/testing/perl-xml-libxml-simple/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-xml-libxml-simple +_pkgreal=XML-LibXML-Simple +pkgver=0.97 +pkgrel=0 +pkgdesc="XML::LibXML based XML::Simple clone" +url="http://search.cpan.org/dist/XML-LibXML-Simple/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-file-slurp-tiny perl-xml-libxml" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/$_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="402da3e6575af4fac52dc911c9935fb0 XML-LibXML-Simple-0.97.tar.gz" +sha256sums="1ccc5fb166586232c939b27244abf1bb7627c7d2fbabe33a654cfcf6c7a416bd XML-LibXML-Simple-0.97.tar.gz" +sha512sums="5607218a0ee7cd08f6e166af30f38ac7942e36e32469836f9b09d3802f32d8c5ca965fe6870823679523721241530eab9a5235dc376b2ce362d70a78b9c2d8f7 XML-LibXML-Simple-0.97.tar.gz" |