projects/aports·blob master · refs

55 lines · 1.6 KiB

1# Automatically generated by apkbuild-cpan, template 4
2# Contributor: Celeste <[email protected]>
3# Maintainer:
4pkgname=perl-x11-korgwm
5pkgver=5.0
6pkgrel=1
7#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
8_pkgreal=X11-korgwm
9pkgdesc="Tiling window manager for X11"
10provides="korgwm=$pkgver-r$pkgrel"
11url="https://metacpan.org/release/X11-korgwm/"
12arch="noarch"
13license="MIT"
14# font-dejavu: DejaVu Sans Mono is the status bar default font
15depends="
16 font-dejavu gtk+3.0 perl perl-anyevent perl-anyevent-dbus
17 perl-glib-object-introspection perl-gtk3 perl-net-dbus
18 perl-x11-xcb perl-yaml-tiny xrandr
19 "
20subpackages="$pkgname-doc"
21source="https://cpan.metacpan.org/authors/id/Z/ZH/ZHMYLOVE/X11-korgwm-$pkgver.tar.gz
22 korgwm.desktop
23 "
24builddir="$srcdir/$_pkgreal-$pkgver"
25
26build() {
27 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
28 PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
29 INSTALLDIRS=vendor \
30 NO_PACKLIST=1 \
31 NO_PERLLOCAL=1
32 make
33}
34
35check() {
36 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
37 make test
38}
39
40package() {
41 make DESTDIR="$pkgdir" install
42
43 install -Dvm644 "$srcdir"/korgwm.desktop \
44 -t "$pkgdir"/usr/share/xsessions/
45
46 install -Dvm644 API.md korgwm.conf.sample \
47 -t "$pkgdir"/usr/share/doc/korgwm/
48 install -Dvm644 LICENSE \
49 -t "$pkgdir"/usr/share/licenses/korgwm/
50}
51
52sha512sums="
531cd031d643b62972ca10d36a31614f8c16a178b27521b3a1158299f2e04a51304695c8d5a96991a58c575b0f2156eb47b94451fe16441699635283ca38d516fb X11-korgwm-5.0.tar.gz
5495226b41a49fc27e4d1e3f717e4ab7f4321c94caa98de37cbc2752c43d410c5c7f8b8b5e750e018f05bc2d1a8f4380f2d06540ba463b3fba1bc8d5f4aa937468 korgwm.desktop
55"