blob: 4933a2f20e5b34140622fa9522124f4470a25c0b (
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
|
# 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.001010
pkgrel=0
pkgdesc="Create init scripts in Perl"
url="https://metacpan.org/release/Daemon-Control"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="$cpandepends"
makedepends="perl-dev perl-module-install $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SY/SYMKAT/Daemon-Control-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
sed -i -e 's/sleep 10/sleep 11/g' t/*.t
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
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
sha512sums="5042774d1d0b5b0c3d78bbfaaf3f4c076be0ffbea209a3ec03d33569769a7b1b31d6b6d987115b3585bf1f92262c0f9611c387a10177cab8f750c865c9329e7c Daemon-Control-0.001010.tar.gz"
|