aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-09-21 22:20:59 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-09-23 02:12:01 +0200
commitfb94eaa7e6b408719c44f3fd0f8ece632b1d3c17 (patch)
treee643102e5e3b49ee42603513fba655fcea63d069 /community
parent249001e1f16cef7e910455cb67c5d4773e5caad9 (diff)
downloadaports-fb94eaa7e6b408719c44f3fd0f8ece632b1d3c17.tar.bz2
aports-fb94eaa7e6b408719c44f3fd0f8ece632b1d3c17.tar.xz
community/perl-readonly: new aport
Diffstat (limited to 'community')
-rw-r--r--community/perl-readonly/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/perl-readonly/APKBUILD b/community/perl-readonly/APKBUILD
new file mode 100644
index 0000000000..1aa6d4cb2e
--- /dev/null
+++ b/community/perl-readonly/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=perl-readonly
+_pkgname=Readonly
+pkgver=2.05
+pkgrel=0
+pkgdesc="Facility for creating read-only scalars, arrays, hashes"
+url="https://github.com/sanko/readonly"
+arch="noarch"
+license="PerlArtistic"
+makedepends="perl-dev 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 || return 1
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL --installdirs=vendor || return 1
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build && ./Build test
+}
+
+package() {
+ cd "$builddir"
+ ./Build install --destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="acae851d7d55c509f5f00a8849597e54 Readonly-2.05.tar.gz"
+sha256sums="4b23542491af010d44a5c7c861244738acc74ababae6b8838d354dfb19462b5e Readonly-2.05.tar.gz"
+sha512sums="d42406c1985248a352860f80c3b0b1a41476e5a7b4bff71e83122d7c5eb609296a1eb00aa71cf9f899317e31c706d75ff07950815eff84afb6bec40de6de2ace Readonly-2.05.tar.gz"