From 7b03e4648f0d805250eb4db954ce9874cf6804ea Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Thu, 6 Dec 2018 19:42:51 -0600 Subject: user/spectrwm: new package --- user/spectrwm/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 user/spectrwm/APKBUILD diff --git a/user/spectrwm/APKBUILD b/user/spectrwm/APKBUILD new file mode 100644 index 000000000..4c3de19db --- /dev/null +++ b/user/spectrwm/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Kiyoshi Aman +# Maintainer: Kiyoshi Aman +pkgname=spectrwm +pkgver=3.2.0 +_pkgver=${pkgver/./_} +_pkgver=${_pkgver/./_} +pkgrel=0 +pkgdesc="Small dynamic tiling window manager" +url="https://github.com/conformal/spectrwm" +arch="all" +options="!check" # no tests +license="ISC AND MIT" +depends="" +makedepends="libx11-dev libxcursor-dev libxcb-dev xcb-util-keysyms-dev + xcb-util-wm-dev libxft-dev libxt-dev libxrandr-dev bsd-compat-headers" +subpackages="$pkgname-doc" +source="spectrwm-$pkgver.tar.gz::https://github.com/conformal/spectrwm/archive/SPECTRWM_$_pkgver.tar.gz" +builddir="$srcdir/spectrwm-SPECTRWM_$_pkgver" + +build() { + cd "$builddir"/linux + CFLAGS="-DSWM_LIB=libswmhack.so" make PREFIX=/usr +} + +package() { + cd "$builddir"/linux + make PREFIX=/usr DESTDIR="$pkgdir" install + cd .. + for i in screenshot.sh baraction.sh; do + install -Dm755 $i "$pkgdir"/usr/share/spectrwm/$i + done + install -Dm644 spectrwm.conf "$pkgdir"/usr/share/spectrwm/spectrwm.conf + mkdir -p "$pkgdir"/etc/spectrwm + for i in spectrwm_*.conf; do + install -Dm644 $i "$pkgdir"/etc/spectrwm/$i + done +} + +sha512sums="038d7fc5716fbca324a078a311939ec23db6ff53e9ef33b2804c687838e729f0e7bb7f724c539e8ac8efed9607358962d4dd742db7f1a30bf3c6ab72eade1039 spectrwm-3.2.0.tar.gz" -- cgit v1.2.3-70-g09d2