aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-class-tiny/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-11-16 15:12:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-16 15:12:12 +0000
commitc335f340d4370400f579cb1476becd575091e0db (patch)
tree66b914003e45b208a4108bdeb6554c9af0397fd6 /main/perl-class-tiny/APKBUILD
parent93d882a66c482eb674dc016b095c73f40cc3e1be (diff)
downloadaports-c335f340d4370400f579cb1476becd575091e0db.tar.bz2
aports-c335f340d4370400f579cb1476becd575091e0db.tar.xz
main/perl-class-tiny: new apkbuild
needed by perl-test-file-sharedir
Diffstat (limited to 'main/perl-class-tiny/APKBUILD')
-rw-r--r--main/perl-class-tiny/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/main/perl-class-tiny/APKBUILD b/main/perl-class-tiny/APKBUILD
new file mode 100644
index 0000000000..00cbd0cf91
--- /dev/null
+++ b/main/perl-class-tiny/APKBUILD
@@ -0,0 +1,47 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=perl-class-tiny
+_pkgreal=Class-Tiny
+pkgver=1.006
+pkgrel=0
+pkgdesc="Minimalist class construction"
+url="http://search.cpan.org/dist/Class-Tiny/"
+arch="noarch"
+license="apache_2_0"
+cpandepends=""
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="0a6ca0b99bd10a39445bb582bcf89f3668747f05b13b1f7271e934a73781c855a0418ae19a41593c64288b74710f49c1dcda0005be4edf9965e8020139ca0c7e Class-Tiny-1.006.tar.gz"