# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs 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"