diff options
Diffstat (limited to 'testing')
-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" |