updated on Thu Jan 12 00:00:55 UTC 2012
[aur-mirror.git] / qldt / PKGBUILD
blobe17d6f0ab0fc613133ff09b44d3569301618fa06
1 # Contributor: Fortunato Ventre (voRia) <vorione AT gmail.com>
2 pkgname=qldt
3 pkgver=1.1.8
4 pkgrel=1
5 pkgdesc="Quake Live Demo Tools"
6 arch=('i686' 'x86_64')
7 url="http://sourceforge.net/projects/qldt/"
8 license=('GPL3')
9 depends=(qt)
10 install=qldt.install
11 source=(http://downloads.sourceforge.net/project/qldt/qldt/${pkgver}/qldt-${pkgver}-src.tar.gz)
12 md5sums=('b5492883bcbeff3a546f4a6857d5acc8')
14 package() {
15   cd ${srcdir}/qldt-${pkgver}/
16   
17   # Build
18   if [ "$CARCH" == "i686" ]; then
19     qmake -spec linux-g++-32
20   else
21     qmake -spec linux-g++-64
22   fi
23   make qmake
24   make
25   
26   # Install
27   install -m755 -d ${pkgdir}/usr/bin/
28   install -m755 qldt ${pkgdir}/usr/bin/
29   install -m755 qldtce ${pkgdir}/usr/bin/
30   install -m755 -d ${pkgdir}/usr/share/icons/
31   install -m644 desktop/quakelive_demo.png ${pkgdir}/usr/share/icons/qldt_icon.png
32   install -m644 desktop/quakelive_cfg.png ${pkgdir}/usr/share/icons/qldtce_icon.png
33   install -m755 -d ${pkgdir}/usr/share/applications/
34   install -m644 desktop/*.desktop ${pkgdir}/usr/share/applications/
37 # vim:set ts=2 sw=2 et: