aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorAndreas Schipplock <andreas@schipplock.de>2017-06-05 22:09:57 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-06-06 12:09:24 +0000
commit3d4ecf264869e752d7e46b27629ff84ed4026eb4 (patch)
tree19b6820149bd48b4f1b9e10d1bc9ce0f7cc4c137 /community
parentaa5da27932523beadf0459c9a114d4cc0633976f (diff)
downloadaports-3d4ecf264869e752d7e46b27629ff84ed4026eb4.tar.bz2
aports-3d4ecf264869e752d7e46b27629ff84ed4026eb4.tar.xz
community/perl-config-properties: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/perl-config-properties/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-config-properties/APKBUILD b/community/perl-config-properties/APKBUILD
new file mode 100644
index 0000000000..c37b13d418
--- /dev/null
+++ b/community/perl-config-properties/APKBUILD
@@ -0,0 +1,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"