diff --git a/testing/sxmo-dwm/APKBUILD b/testing/sxmo-dwm/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..dd6e42fbd635ca50224020063f836917b893cbf2 --- /dev/null +++ b/testing/sxmo-dwm/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Anjandev Momi <anjan@momi.ca> +pkgname=sxmo-dwm +pkgver=6.2.12 +pkgrel=0 +pkgdesc="Dwm fork for Sxmo UI; supports volume-key hotkeys, swallow, keyboard, among other patches" +url="https://git.sr.ht/~mil/sxmo-dwm" +arch="all" +license="MIT" +depends="xorg-server" +makedepends="libxft-dev libx11-dev libxinerama-dev" +subpackages="$pkgname-doc" +provides="dwm" +options="!check" # has no tests +source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~mil/sxmo-dwm/archive/$pkgver.tar.gz" + +prepare() { + default_prepare + sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \ + -e '/LDFLAGS/{s/=/+=/}' \ + "$builddir"/config.mk +} + +build() { + make X11INC=/usr/include/X11 \ + X11LIB=/usr/lib/X11 \ + FREETYPEINC=/usr/include/freetype2 \ + -C "$builddir" +} + +package() { + make PREFIX=/usr DESTDIR="$pkgdir" \ + -C "$builddir" install +} + +sha512sums="842d93eb51204059e2f10c78dbf61f0239fef176d768b43a4d0b5f39a5ec452546e9fa77bc580a496f57f5a8f90a5576aa59a8964ffb0f86be2e454aec2b27c5 sxmo-dwm-6.2.12.tar.gz"