aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-daemon-control/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 11:25:27 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:23 +0300
commitbcd072c78175f9c5296abbcbd95315983846a98d (patch)
treeca9b13cd7214a651c00008094e49c23bc61d827e /testing/perl-daemon-control/APKBUILD
parent4674b92ea7700fb022c011661aa5560e57bed084 (diff)
downloadaports-bcd072c78175f9c5296abbcbd95315983846a98d.tar.bz2
aports-bcd072c78175f9c5296abbcbd95315983846a98d.tar.xz
testing/perl-daemon-control: new aport
http://search.cpan.org/dist/Daemon-Control/
Diffstat (limited to 'testing/perl-daemon-control/APKBUILD')
-rw-r--r--testing/perl-daemon-control/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-daemon-control/APKBUILD b/testing/perl-daemon-control/APKBUILD
new file mode 100644
index 0000000000..38754d0e7f
--- /dev/null
+++ b/testing/perl-daemon-control/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-daemon-control
+_pkgreal=Daemon-Control
+pkgver=0.001008
+pkgrel=0
+pkgdesc="Create init scripts in Perl"
+url="http://search.cpan.org/dist/Daemon-Control/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/S/SY/SYMKAT/$_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="ba7c5d0b6be6dc03e3ba07ae57639921dd89231a82a7a12821f31e4e9629a218aab787641c608510d1b4024ddd5c2ce58f39d46e6002a7492bbf531d31dc6aa8 Daemon-Control-0.001008.tar.gz"