aboutsummaryrefslogtreecommitdiffstats
path: root/community/i3wm/APKBUILD
blob: 1e5b183e32a45f43a3048d51359857c1c7d4c9d4 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=i3wm
pkgver=4.16.1
pkgrel=2
pkgdesc="Improved dynamic tiling window manager"
url="https://i3wm.org"
arch="all"
license="BSD-3-Clause"
makedepends="
	bison
	cairo-dev
	flex
	libev-dev
	libxcb-dev
	libxkbcommon-dev
	pango-dev
	pcre-dev
	perl
	startup-notification-dev
	xcb-util-cursor-dev
	xcb-util-keysyms-dev
	xcb-util-wm-dev
	xcb-util-xrm-dev
	yajl-dev
	"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-save_tree:savetree:noarch
	"
source="
	https://i3wm.org/downloads/i3-$pkgver.tar.bz2
	i3wm-musl-glob-tilde.patch
	"
builddir="$srcdir/i3-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--prefix="/usr" \
		--disable-builddir \
		--sysconfdir="/etc"
	make
}

check() {
	cd "$builddir"
	./i3 --version > /dev/null
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir/" install

	install -d "$pkgdir/usr/share/man/man1"
	install -m644 man/*.1 "$pkgdir"/usr/share/man/man1/
}

savetree() {
	pkgdesc="Session export tool for $pkgname"
	depends="$pkgname=$pkgver perl-anyevent-i3"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/i3-save-tree "$subpkgdir"/usr/bin/
}

sha512sums="3e328f8c7216697c5e484ca854605350f78844e24cc6cfb9c10e71368c2c0457387a14f819abdf8be2370d437889297f452fbf63f3924766ca81c157ab27e1b0  i3-4.16.1.tar.bz2
c6ae3f22d0303da5de7ca4c92734b043a76d7447559fe2ffc308a8d135076cf05ee53ef63eb28c1bd628a1edfb2d1a0ed2d090836cb5fc70f2b882ee1105dad3  i3wm-musl-glob-tilde.patch"