aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-lockfile-simple
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2017-07-10 13:05:01 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-08-29 08:43:50 +0000
commit9cbfc163695fedb7375cbe7673e92fb5826daa20 (patch)
tree3f05b82f248599c3af2e2ab078cd114619454635 /testing/perl-lockfile-simple
parent9a6ff20f46232b92c613048863f6d23975be2d58 (diff)
downloadaports-9cbfc163695fedb7375cbe7673e92fb5826daa20.tar.bz2
aports-9cbfc163695fedb7375cbe7673e92fb5826daa20.tar.xz
testing/perl-lockfile-simple: new aport
Simple file locking scheme" http://search.cpan.org/dist/LockFile-Simple/
Diffstat (limited to 'testing/perl-lockfile-simple')
-rw-r--r--testing/perl-lockfile-simple/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/perl-lockfile-simple/APKBUILD b/testing/perl-lockfile-simple/APKBUILD
new file mode 100644
index 0000000000..95ecd050a1
--- /dev/null
+++ b/testing/perl-lockfile-simple/APKBUILD
@@ -0,0 +1,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"