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

                                                           
                
            
                                         



                                             
                                  








                                                                                                        
                                                                  


           
                                                           









                                                                               
                                                                                                                                                                    
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=spectrwm
pkgver=3.5.1
_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="9a5b9bee6debd395b6b5f706d12dbb80a848e4f5f02405a54cf9a47b2bcceb407bf14fce64a9cc4ff9205ed7e688adeefb0280289b73a0cf9927b44cfaec02fa  spectrwm-3.5.1.tar.gz"