summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 661b124e24e0af4503e38d299fd97f94af10e9a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Nicholas Tay <nkt@outlook.kr>

pkgname=i3-ws-nick-git
_pkgname=${pkgname%-git}
pkgver=dac6b63
pkgrel=2
pkgdesc='Multi-monitor workspace helper for i3-wm'
arch=('x86_64')
license=('unknown')
url='https://github.com/nicholastay/i3-ws'
depends=('jsoncpp' 'libsigc++')
makedepends=('git' 'cmake')
sha256sums=('SKIP')
source=("${_pkgname}::git+${url}")

prepare() {
	# git submodule (i3ipc++)
	cd "${_pkgname}"
	git submodule update --init --recursive
}

pkgver() {
	cd "${_pkgname}"
	echo "$(git rev-parse --short HEAD)"
}

build() {
	cd "${_pkgname}"
	cmake '.' \
		-DCMAKE_INSTALL_PREFIX='/usr'
	make
}

package() {
	cd "${_pkgname}"
	make DESTDIR="${pkgdir}" install
}