blob: b6c08770d1304b30cef2ad1aed326e39b189a19e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# 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.96
pkgrel=0
pkgdesc="MAC address functions and object"
url="https://metacpan.org/release/NetAddr-MAC"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpanmakedepends="perl-test-trap"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DJ/DJZORT/NetAddr-MAC-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
sha512sums="c2bd45cda42c9fe354354a8a2fb7ce3a528d49d0aaf48bb67059d047e139ed84118f8766f9c0c233296670584172e9ef6f0c34f7036845dbf5ec8d2fab119512 NetAddr-MAC-0.96.tar.gz"
|