updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / ion3 / PKGBUILD
blob26f707d84290443413d119b7a0ab4f9e2a10ae45
1 # Contributor: Tanguy BouzĂ©loc <the.zauron@gmail.com>
3 pkgname=ion3
4 pkgver=20090110
5 pkgrel=1
6 pkgdesc="Tiling tabbed window manager designed with keyboard users in mind"
7 arch=('i686' 'x86_64')
8 url="http://modeemi.fi/~tuomov/ion/"
9 license=('custom')
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')
15 build() {
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
30   fi
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