aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-anyevent-i3/APKBUILD
blob: 2ed9a591bed98021b08fe982177992c26254bd54 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=perl-anyevent-i3
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=AnyEvent-I3
pkgver=0.17
pkgrel=3
pkgdesc="Communicate with the i3 window manager"
url="https://metacpan.org/release/AnyEvent-I3/"
arch="noarch"
license="Artistic-1.0 GPL-1.0-only"
depends="perl perl-anyevent perl-json-xs i3wm"
makedepends="perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MS/MSTPLBG/AnyEvent-I3-$pkgver.tar.gz
	disable-tests-fail-with-insecure-path.patch"
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="e8b0ccb89be27d5e952e5cb819e1f462ad5c558879a88fb5087d72517424316c0053b081ed9763d701a017c1d838fa694b49f40886335a23a68ebb091714b259  AnyEvent-I3-0.17.tar.gz
6885a5fa8c0edc75c4dcbfae80126920398f3b99529ac2ac6a74b3b6218104a9ab9e9119119bc71581a866e4dbbd1140dda51edce54c976dd7ef08e9b9c9c312  disable-tests-fail-with-insecure-path.patch"