summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-12-06 19:42:51 -0600
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-12-08 11:42:46 -0600
commit7b03e4648f0d805250eb4db954ce9874cf6804ea (patch)
tree1bb6aa71df4796632d28bbd658c1258eab6fb84e /user
parent79c68b128ee884a278a0bd7bcba32429c84252e1 (diff)
downloadpackages-7b03e4648f0d805250eb4db954ce9874cf6804ea.tar.gz
packages-7b03e4648f0d805250eb4db954ce9874cf6804ea.tar.bz2
packages-7b03e4648f0d805250eb4db954ce9874cf6804ea.tar.xz
packages-7b03e4648f0d805250eb4db954ce9874cf6804ea.zip
user/spectrwm: new package
Diffstat (limited to 'user')
-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"