updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / ion-3-xft / PKGBUILD
blobf4764210e0435a4ab8c5ff0ca4d7f54bce18b022
1 # Provider: realturner < realturner at gmail dot com >
3 pkgname="ion-3-xft"
4 _pkgname="ion-3"
5 pkgver="20090110"
6 pkgrel=1
7 pkgdesc="Tiling tabbed window manager, XFT patched version"
8 url="http://modeemi.fi/~tuomov/ion"
9 arch=('i686' 'x86_64')
10 license=('LGPL2')
11 depends=('libsm' 'libxext' 'lua>=5.1' 'libxft')
12 makedepends=('libtool' 'sed')
13 conflicts=('ion-3')
14 provides=('ion-3')
15 install="${_pkgname}.install"
16 source=("http://iki.fi/tuomov/dl/${_pkgname}-$pkgver.tar.gz"
17         "system.mk"
18         "xft-ion3-20090110.patch")
19 md5sums=('1f17be1e87187b4af7de047187cc4930'
20          '288ddc4e94f568448fd08a6a6da14cdc'
21          '68f3da20b45ec583347b5325d9062e19')
23 build() {
24         cd "$srcdir/${_pkgname}-$pkgver"
25         # Patch file
26         patch -Np3 -i ../xft-ion3-20090110.patch
27         # Copy building configuration.
28         cp "$srcdir/system.mk" "$srcdir/${_pkgname}-$pkgver"
29         # Replace the date information in the .install file.
30         _pkgdate="$(echo "$pkgver" | sed 's/\([0-9]\{4\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)/{year=\1, month=\2, day=\3}/')"
31         sed -i "s/_pkgdate='[^']*'/_pkgdate='${_pkgdate}'/" "${_pkgname}.install"
33         # Build it.
34         cd "$srcdir/${_pkgname}-$pkgver"
35         MAKEFLAGS="" make || return 1
36         make PREFIX="$pkgdir/usr" ETCDIR="$pkgdir/etc/ion3" install