summaryrefslogblamecommitdiff
path: root/user/spectrwm/APKBUILD
blob: 2ebbe2949901b5d70f48c92fed37cd2bf452db01 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                         
                
            
                                         



                                             
                                  








                                                                                                        
                                                                  


           
                                                           









                                                                               
                                                                                                                                                                    
# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=spectrwm
pkgver=3.4.0
_pkgver=$(printf '%s' "$pkgver" | tr . _)
pkgrel=0
pkgdesc="Small dynamic tiling window manager"
url="https://github.com/conformal/spectrwm"
arch="all"
options="!check"  # No test suite.
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() {
	CFLAGS="-DSWM_LIB=libswmhack.so" make -C linux PREFIX=/usr
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" -C linux install
	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="f55785976ffefaa93601cdc509880cc7e1c13df6f676d3dc0ee8121240b221b0d3db5968d32486673e2ab172165dd55da3d28b1e088fbf4f77ccecb8c6e57519  spectrwm-3.4.0.tar.gz"