updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fontmatrix / PKGBUILD
blob58a1e191aef34d10aa3462968418578a803742e5
1 # Contributor: Michal Malek <michalm@jabster.pl>
3 pkgname=fontmatrix
4 pkgver=0.6.0
5 pkgrel=3
6 pkgdesc="Font manager for Linux"
7 arch=('i686' 'x86_64')
8 url="http://fontmatrix.net/"
9 license=('GPL')
10 depends=('qt>=4.3.0')
11 makedepends=('cmake>=2.4.0' 'mesa')
12 source=(http://pkgs.fedoraproject.org/repo/pkgs/$pkgname/$pkgname-$pkgver-Source.tar.gz/6a00c9448a50d3bab5acb4145f778f2d/$pkgname-$pkgver-Source.tar.gz)
13 md5sums=('6a00c9448a50d3bab5acb4145f778f2d')
15 build()
17         export QTDIR=/usr
18         if [ "${CARCH}" = "i686" ]; then
19                 export QMAKESPEC=/usr/share/qt/mkspecs/linux-g++-32
20         elif [ "${CARCH}" = "x86_64" ]; then
21                 export QMAKESPEC=/usr/share/qt/mkspecs/linux-g++-64
22         fi
23         
24         cd $srcdir/$pkgname-$pkgver-Source
25         mkdir build
26         cd build
27         cmake .. -DCMAKE_INSTALL_PREFIX=/usr || return 1
28         make || return 1
29         make DESTDIR=$pkgdir install || return 1