aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-lockfile-simple/APKBUILD
blob: 95ecd050a111d9acfbb9b65f86d3f156ec7958ee (plain) (blame)
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
# Contributor: TBK <tbk@jjtc.eu>
pkgname=perl-lockfile-simple
_pkgreal=LockFile-Simple
__pkgreal=lockfile-simple
pkgver=0.208
pkgrel=0
pkgdesc="Simple file locking scheme"
url="http://search.cpan.org/dist/LockFile-Simple/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SC/SCHWIGON/$__pkgreal/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="a1234d11cdb7bb98bd3d6c2504697187f2f7979c7acd7cfb0398f358f390af7b5eb7d834e83c83b0515199ac8d9a306d7fcdc96df04b0513f821887ad49fd67e  LockFile-Simple-0.208.tar.gz"