aboutsummaryrefslogtreecommitdiffstats
path: root/testing/spectrwm/APKBUILD
diff options
context:
space:
mode:
authorSascha Paunovic <azarus@posteo.net>2018-05-30 00:03:35 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2018-07-01 00:23:00 +0200
commit5265c2fca61bc5a4ec44301aa25683f4eb45d678 (patch)
tree91e0ddd35fc15669572f453c486a049f186272d7 /testing/spectrwm/APKBUILD
parent6af4bf5fe6bec189bb01b218e9a59595e1659fc7 (diff)
downloadaports-5265c2fca61bc5a4ec44301aa25683f4eb45d678.tar.gz
aports-5265c2fca61bc5a4ec44301aa25683f4eb45d678.tar.bz2
aports-5265c2fca61bc5a4ec44301aa25683f4eb45d678.tar.xz
testing/spectrwm: new aport
Diffstat (limited to 'testing/spectrwm/APKBUILD')
-rw-r--r--testing/spectrwm/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/spectrwm/APKBUILD b/testing/spectrwm/APKBUILD
new file mode 100644
index 0000000000..6a5b3d0389
--- /dev/null
+++ b/testing/spectrwm/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Sascha Paunovic <azarus@posteo.net>
+# Maintainer: Sascha Paunovic <azarus@posteo.net>
+pkgname=spectrwm
+_pkgname=SPECTRWM_
+pkgver=3.1.0
+_pkgver=3_1_0
+pkgrel=0
+pkgdesc="dynamic, configurable tiling window manager for X11"
+url="https://github.com/conformal/spectrwm"
+arch="all"
+license="ISC"
+depends="dmenu terminus-font"
+makedepends="bsd-compat-headers freetype-dev libxcursor-dev libxft-dev
+ libxrandr-dev libxt-dev xcb-util-keysyms-dev xcb-util-wm-dev"
+subpackages="$pkgname-doc"
+source="https://github.com/conformal/$pkgname/archive/$_pkgname$_pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$_pkgname$_pkgver"
+
+build() {
+ cd "$builddir"/linux
+ make PREFIX="/usr"
+}
+
+package() {
+ cd "$builddir"
+
+ install -Dm644 spectrwm.conf "$pkgdir"/etc/spectrwm.conf
+ mkdir "$pkgdir"/etc/spectrwm
+ cp spectrwm_*.conf "$pkgdir"/etc/spectrwm/
+
+ # make default config work
+ install -Dm755 baraction.sh "$pkgdir"/usr/share/spectrwm/baraction.sh
+ install -Dm755 screenshot.sh "$pkgdir"/usr/share/spectrwm/screenshot.sh
+
+ cd linux
+ make PREFIX="/usr" DESTDIR="$pkgdir" install
+
+ # remove unneccessary stuff
+ rm "$pkgdir"/usr/bin/scrotwm
+ # provide convenience symlink
+ ln -s "$pkgdir"/usr/bin/spectrwm "$pkgdir"/usr/bin/scrotwm
+}
+
+sha512sums="dd8e16361b979a55b210a88a1ae5d53e7086fd854e92320e09b6407d374580cc271c0e974e38606481ab57a504a86e16293edee967d251b043a1eb65e8c77687 SPECTRWM_3_1_0.tar.gz"