mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
community/perl-file-fcntllock: new aport
https://metacpan.org/release/File-FcntlLock/ File locking with fcntl(2) Needed as depends for -scripts subpkg of community/exim (used by exim_id_update)
This commit is contained in:
parent
8cfc70c45d
commit
f73a439b1b
44
community/perl-file-fcntllock/APKBUILD
Normal file
44
community/perl-file-fcntllock/APKBUILD
Normal file
@ -0,0 +1,44 @@
|
||||
# Automatically generated by apkbuild-cpan, template 3
|
||||
# Contributor: Celeste <cielesti@protonmail.com>
|
||||
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||
pkgname=perl-file-fcntllock
|
||||
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=File-FcntlLock
|
||||
pkgver=0.22
|
||||
pkgrel=0
|
||||
pkgdesc="File locking with fcntl(2)"
|
||||
url="https://metacpan.org/release/File-FcntlLock/"
|
||||
arch="all"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="perl"
|
||||
makedepends="perl-dev"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/J/JT/JTT/File-FcntlLock-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
doc() {
|
||||
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
||||
amove "${file#"$pkgdir"}"
|
||||
done
|
||||
default_doc
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c57bc73ce220fc3379dd88e6f1c422ce05dbf659e4ac676614b4fc6967d2ea5e27b476c0a1e29caf1e469a4ace7d23a1b0e86284403b2443d19df7fc52b308db File-FcntlLock-0.22.tar.gz
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user