aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-config-properties/APKBUILD
blob: c37b13d4180eba15f42f63f800bb6d029017cbf9 (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
# Contributor: Andreas Schipplock <andreas@schipplock.de>
# Maintainer: Andreas Schipplock <andreas@schipplock.de>
pkgname=perl-config-properties
_pkgreal=Config-Properties
pkgver=1.80
pkgrel=0
pkgdesc="Read and write property files"
url="http://search.cpan.org/dist/Config-Properties/"
arch="noarch"
license="GPL PerlArtistic"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SA/SALVA/$_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 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="2a3512aebeae2a95815dcd4cb84476919cf1aee5d5e8d93916d64ade3d49adc0720808487bba80664ccb978914b275f163cecbd5080075fd1f8f4d37697610bb  Config-Properties-1.80.tar.gz"