diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2018-12-29 21:57:06 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2018-12-29 21:57:06 +0000 |
commit | f64e3c9d8907eb4ee3165975ceb1267d4eb40c5c (patch) | |
tree | 7edc61c2627b169cc8322a65fc2c4c23f991ffdd | |
parent | 829a5cdffe5c8d14b9b8af42ccda7af6bc8f4373 (diff) | |
parent | 7b03e4648f0d805250eb4db954ce9874cf6804ea (diff) | |
download | packages-f64e3c9d8907eb4ee3165975ceb1267d4eb40c5c.tar.gz packages-f64e3c9d8907eb4ee3165975ceb1267d4eb40c5c.tar.bz2 packages-f64e3c9d8907eb4ee3165975ceb1267d4eb40c5c.tar.xz packages-f64e3c9d8907eb4ee3165975ceb1267d4eb40c5c.zip |
Merge branch 'spectrwm' into 'master'
user/spectrwm: new package
See merge request !127
-rw-r--r-- | user/spectrwm/APKBUILD | 39 |
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" |