aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-linux-inotify2/APKBUILD
blob: 9812634d622742386e79e6e1e6182e7aacf803ba (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-linux-inotify2
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Linux-Inotify2
pkgver=2.2
pkgrel=1
pkgdesc="scalable directory/file change notification"
url="https://metacpan.org/release/Linux-Inotify2/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-common-sense"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/Linux-Inotify2-$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
}

sha512sums="2c9d7c0489f65821783d448c304d320490490cf955456e9e9e80b92927e12cb0f7cfc66034a85d7b3d440602910b7db1ec4afe54d4e802815435c1bdbf81bac3  Linux-Inotify2-2.2.tar.gz"