summaryrefslogblamecommitdiff
path: root/user/perl-io-stringy/APKBUILD
blob: af975f67bbc35d5ef38b0a2982af760c54c967c1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                                                   


                               





                                                        

                      
                          
                                                                                        


                                    

                                                                 



            



                 




                                                                                                                                                                      
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-io-stringy
_pkgreal=IO-stringy
_author=DSKOLL
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.111
pkgrel=0
pkgdesc="I/O on in-core objects like strings and arrays"
url="https://metacpan.org/release/IO-stringy"
arch="noarch"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="9da8fb03945bc4a59cea3b3b2e22b15d56b133470e581d1cb03920bda2b4953e3c9e4a25d095ed8a384efb5a4c58db437c92cca6a81d583791191f1a37691a4a  IO-stringy-2.111.tar.gz"