# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=perl-readonly _pkgname=Readonly pkgver=2.05 pkgrel=3 pkgdesc="Facility for creating read-only scalars, arrays, hashes" url="https://github.com/sanko/readonly" arch="noarch" license="PerlArtistic" depends="perl" makedepends="perl-module-build-tiny" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SA/SANKO/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL --installdirs=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build } check() { ./Build test } package() { ./Build install --destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="d42406c1985248a352860f80c3b0b1a41476e5a7b4bff71e83122d7c5eb609296a1eb00aa71cf9f899317e31c706d75ff07950815eff84afb6bec40de6de2ace Readonly-2.05.tar.gz"