| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-xml-stream |
| 5 | pkgver=1.24 |
| 6 | pkgrel=1 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=XML-Stream |
| 9 | pkgdesc="XML stream support library for XMPP-like protocols" |
| 10 | url="https://metacpan.org/release/XML-Stream/" |
| 11 | arch="noarch" |
| 12 | license="LGPL-2.1-or-later" |
| 13 | depends="perl perl-authen-sasl perl-io-socket-ssl" |
| 14 | makedepends="perl-module-build" |
| 15 | subpackages="$pkgname-doc" |
| 16 | source="https://cpan.metacpan.org/authors/id/D/DA/DAPATRICK/XML-Stream-$pkgver.tar.gz |
| 17 | improvements.patch |
| 18 | precedence.patch |
| 19 | ssl-verify.patch |
| 20 | " |
| 21 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 22 | |
| 23 | build() { |
| 24 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 25 | perl Build.PL \ |
| 26 | --installdirs=vendor \ |
| 27 | --create_packlist=0 |
| 28 | ./Build |
| 29 | } |
| 30 | |
| 31 | check() { |
| 32 | ./Build test |
| 33 | } |
| 34 | |
| 35 | package() { |
| 36 | ./Build install --destdir="$pkgdir" |
| 37 | } |
| 38 | |
| 39 | sha512sums=" |
| 40 | f762e09197fa7f36cee8484e30a6ce972e407d92cbe55bdf96bcc0073187aff34630c5d9dd2555a14cd297e506875dc2ff153b09001c971b020c37340886025d XML-Stream-1.24.tar.gz |
| 41 | e7b165c381f80e1db2639a71fa13620b8bcdcb6098d9cb414d5a382d06ee2b28dc8834af07e0d587152ab0bed1aceb4c57b332de933262731bb0e9ec1e658180 improvements.patch |
| 42 | 6e5084b2888dcec6b73fbd9845e16df50fafd9715c4adfeaee5c67322b5030bd8d78c2cd25132d5b6e437b0c9be3d96f44c9f00e4bd4035d50ecbd42cdcc6ce7 precedence.patch |
| 43 | 6a48c3ad2c356ac98f59f84b48e68738214c7812491d921dcedf410aa667ab69b1ece01ffe0c141c8d66edaaf2e022bb50880e6ea72ea849026dba8ac37dca7c ssl-verify.patch |
| 44 | " |