summaryrefslogtreecommitdiff
path: root/repo/openbox/openbox.xibuild
blob: a1367060c092805f49303022dd6f14974899c37d (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
#!/bin/sh

NAME="openbox"
DESC="A highly configurable and standards-compliant X11 window manager"

MAKEDEPS="libxcursor libxrandr libxinerama startup-notification pango libxml2 imlib2 librsvg gettext"

PKG_VER=3.6.1
SOURCE="http://openbox.org/dist/openbox/openbox-$PKG_VER.tar.gz"
ADDITIONAL="https://icculus.org/openbox/tools/setlayout.c"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-static
	make
	gcc $CFLAGS $LDFLAGS -o setlayout "$BUILD_ROOT"/setlayout.c -lX11
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$PKG_DEST" install
	install "$BUILD_ROOT"/setlayout "$PKG_DEST"/usr/bin/setlayout
}