updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / ion-3 / PKGBUILD
blobd978ed176b55e2fdf5dd34ac5ac330ecdfe35e71
1 # Maintainer: thotypous <matiasΘarchlinux-br·org>
3 pkgname="ion-3"
4 pkgver="20090110"
5 pkgrel=2
6 pkgdesc="Tiling tabbed window manager"
7 url="http://modeemi.fi/~tuomov/ion"
8 arch=('i686' 'x86_64')
9 license=('LGPL2')
10 depends=('libsm' 'libxext' 'lua>=5.1')
11 makedepends=('libtool' 'sed')
12 install="$pkgname.install"
13 source=("http://archlinux-stuff.googlecode.com/files/$pkgname-$pkgver.tar.gz"
14         "system.mk")
15 md5sums=('1f17be1e87187b4af7de047187cc4930'
16          '07a5d42ef3247b9d842ec0995d232bd7')
18 build() {
19         cd "$startdir"
20         # Copy building configuration.
21         cp "$srcdir/system.mk" "$srcdir/$pkgname-$pkgver"
22         # Replace the date information in the .install file.
23         _pkgdate="$(echo "$pkgver" | sed 's/\([0-9]\{4\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)/{year=\1, month=\2, day=\3}/')"
24         sed -i "s/_pkgdate='[^']*'/_pkgdate='${_pkgdate}'/" "$pkgname.install"
26         # Build it.
27         cd "$srcdir/$pkgname-$pkgver"
28         MAKEFLAGS="" make || return 1
29         make PREFIX="$pkgdir/usr" ETCDIR="$pkgdir/etc/ion3" install