updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / fox-devel / PKGBUILD
blob20e2770af2149ef1752b28c8dfc6763240e53f7c
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
4 pkgname=fox-devel
5 pkgver=1.7.32 # version 1.7.26 up breaks theme management, maybe restored in 1.7.29
6 pkgrel=1
7 pkgdesc="Free Objects for X: GUI Toolkit for C++, development version."
8 arch=('i686' 'x86_64')
9 url="http://www.fox-toolkit.org/"
10 license=('LGPL' 'custom')
11 depends=('bzip2' 'libpng' 'libtiff' 'libxcursor' 'libxft' 'libxi' 'libxrandr' 'mesa' 'perl')
12 options=('!libtool')
13 install="$pkgname.install"
14 provides=("fox=$pkgver")
15 source=("${url/www/ftp}pub/fox-$pkgver.tar.gz")
16 md5sums=('1cf2607d15ffad5b664cf65bfcd249bc')
18 build() {
19   cd "$srcdir/fox-$pkgver"
21   ./configure   --prefix=/usr \
22                 --enable-static=no \
23                 --enable-release \
24                 --with-xft=yes \
25                 --with-opengl=yes \
26                 --with-xim \
27                 --with-xshm \
28                 --with-shape \
29                 --with-xcursor \
30                 --with-xrender \
31                 --with-xrandr \
32                 --with-xfixes \
33                 --with-xinput
34   make
37 package() {
38   cd "$srcdir/fox-$pkgver"
40   make DESTDIR="$pkgdir/" install
42   # license
43   install -Dm644 LICENSE_ADDENDUM "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
45   # rename apps to prevent conflicts with fox
46   for _f in `find $pkgdir/usr/bin -type f`; do
47     mv $_f $_f-1.7
48   done;
49   for _f in `find $pkgdir/usr/share/man -type f`; do
50     mv $_f `dirname $_f`/`basename $_f .1`-1.7.1
51   done;