summaryrefslogtreecommitdiff
path: root/user/spectrwm
diff options
context:
space:
mode:
Diffstat (limited to 'user/spectrwm')
-rw-r--r--user/spectrwm/APKBUILD39
1 files changed, 39 insertions, 0 deletions
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 <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+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"