aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-constant-generate/APKBUILD
blob: 23bd3820f605761898bca859c64544f4e42632b5 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
pkgname=perl-constant-generate
_pkgreal=Constant-Generate
pkgver=0.17
pkgrel=1
pkgdesc="Common tasks for symbolic constants"
url="https://metacpan.org/release/Constant-Generate"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MN/MNUNBERG/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

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 && make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="61636afc1c0be17bc8a26ec4031eae13  Constant-Generate-0.17.tar.gz"
sha256sums="fb34eef48d7c18fe445fa2651c68d65877adc71ee674233bd11989c40c4eb870  Constant-Generate-0.17.tar.gz"
sha512sums="6984d101ec26e7d2c35b45124a6d0240910acd30f47b9947a574e3dcd5d9365bb2d1773daae30c61237b903da929b564272aaf505f446a5e7b24a50970335a21  Constant-Generate-0.17.tar.gz"