aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-netaddr-mac/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 11:13:48 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:23 +0300
commitdaf4401880cac61674fba4dc99e9df2161ce5007 (patch)
tree38293a72511dee8f6e8730050f3a841e3d62163d /testing/perl-netaddr-mac/APKBUILD
parent6c3351afba8dc007556bb19e4a47c8f48ce7947e (diff)
downloadaports-daf4401880cac61674fba4dc99e9df2161ce5007.tar.bz2
aports-daf4401880cac61674fba4dc99e9df2161ce5007.tar.xz
testing/perl-netaddr-mac: new aport
http://search.cpan.org/dist/NetAddr-MAC/
Diffstat (limited to 'testing/perl-netaddr-mac/APKBUILD')
-rw-r--r--testing/perl-netaddr-mac/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-netaddr-mac/APKBUILD b/testing/perl-netaddr-mac/APKBUILD
new file mode 100644
index 0000000000..dbf42fe13f
--- /dev/null
+++ b/testing/perl-netaddr-mac/APKBUILD
@@ -0,0 +1,48 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-netaddr-mac
+_pkgreal=NetAddr-MAC
+pkgver=0.95
+pkgrel=0
+pkgdesc="MAC address functions and object"
+url="http://search.cpan.org/dist/NetAddr-MAC/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="perl-test-trap"
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DJ/DJZORT/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="130a56997eb8b702398412aac29cfcec91931922de7f5feb8978aa88679b61a83f45f37bb7c61070ef2b9fc3134de77c5e6d009d14bb859bec14460f63426f8d NetAddr-MAC-0.95.tar.gz"