1 # Contributor: Tanguy Bouzéloc <the.zauron@gmail.com>
6 pkgdesc="Tiling tabbed window manager designed with keyboard users in mind"
8 url="http://modeemi.fi/~tuomov/ion/"
10 depends=('lua>=5.1' 'libx11' 'libxext' 'libsm' 'libice' 'libxcb' 'libxau' 'libxdmcp')
11 source=(http://tuomo.iki.fi/software/ion-3-${pkgver}.tar.gz ion3.desktop)
12 md5sums=('1f17be1e87187b4af7de047187cc4930'
13 'ea0c20a78da0f60463632b1149fdfeb8')
16 cd ${srcdir}/ion-3-${pkgver}
17 cp system.mk system.mk.new
18 sed -e 's:PREFIX=/usr/local:PREFIX=/usr:' \
19 -e 's:ETCDIR=$(PREFIX)/etc:ETCDIR=/etc:' \
20 -e 's:$(PREFIX)/man:$(PREFIX)/share/man:' \
21 -e 's:$(PREFIX)/doc:$(PREFIX)/share/doc:' \
22 -e 's:#HAS_SYSTEM_ASPRINTF=1:HAS_SYSTEM_ASPRINTF=1:' \
23 -e 's:INSTALL=.*$:INSTALL=install:' \
24 -e 's:LUA_DIR=/usr/local:LUA_DIR=/usr:' \
25 system.mk.new > system.mk
27 if [ -n "${CFLAGS}" ] ; then
28 cp system.mk system.mk.new
29 sed -e "s:CFLAGS=-Os:CFLAGS=${CFLAGS}:" system.mk.new > system.mk
32 make ${MAKEFLAGS} || return 1
33 make PREFIX=${pkgdir}/usr ETCDIR=${pkgdir}/etc/ion3 install || return 1
34 install -D -m644 ${startdir}/ion3.desktop ${pkgdir}/etc/X11/sessions/ion3.desktop || return 1
35 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE