| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-x11-korgwm |
| 5 | pkgver=5.0 |
| 6 | pkgrel=1 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=X11-korgwm |
| 9 | pkgdesc="Tiling window manager for X11" |
| 10 | provides="korgwm=$pkgver-r$pkgrel" |
| 11 | url="https://metacpan.org/release/X11-korgwm/" |
| 12 | arch="noarch" |
| 13 | license="MIT" |
| 14 | # font-dejavu: DejaVu Sans Mono is the status bar default font |
| 15 | depends=" |
| 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 | " |
| 20 | subpackages="$pkgname-doc" |
| 21 | source="https://cpan.metacpan.org/authors/id/Z/ZH/ZHMYLOVE/X11-korgwm-$pkgver.tar.gz |
| 22 | korgwm.desktop |
| 23 | " |
| 24 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 25 | |
| 26 | build() { |
| 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 | |
| 35 | check() { |
| 36 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 37 | make test |
| 38 | } |
| 39 | |
| 40 | package() { |
| 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 | |
| 52 | sha512sums=" |
| 53 | 1cd031d643b62972ca10d36a31614f8c16a178b27521b3a1158299f2e04a51304695c8d5a96991a58c575b0f2156eb47b94451fe16441699635283ca38d516fb X11-korgwm-5.0.tar.gz |
| 54 | 95226b41a49fc27e4d1e3f717e4ab7f4321c94caa98de37cbc2752c43d410c5c7f8b8b5e750e018f05bc2d1a8f4380f2d06540ba463b3fba1bc8d5f4aa937468 korgwm.desktop |
| 55 | " |