updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / zhu3d / PKGBUILD
blob2800e1e0c9f409dbcb3c293a678a3fcbcf049a70
1 # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
2 # Contributor: Ray Kohler <ataraxia937@gmail.com>
3 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
4 # Maintainer: moostik <mooostik_at_gmail.com>
6 pkgname=zhu3d
7 pkgver=4.2.4
8 pkgrel=1
9 pkgdesc="View, animate, and solve up to three functions in 3D-space in an interactive manner"
10 arch=('i686' 'x86_64')
11 url="http://www.kde-apps.org/content/show.php?content=43071"
12 license=('GPL3')
13 depends=('qt' 'mesa')
14 options=('docs')
15 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz" \
16         "${pkgname}.desktop"
17         "${pkgname}.pri.patch"
18         "${pkgname}.pro.patch")
19 md5sums=('c298c95936acce297a3d5616b2ea9d26'
20          '48770d40bf1d9dd8f420365f2b0238cf'
21          '60ae9163e2e34d87e9c13def14a46a11'
22          '5e9fbe67d6fe3bddc15e1994b376c28e')
24 build() {
25   cd "${srcdir}/${pkgname}-${pkgver}"
26   
27   # Redefine the locations of the default directories
28   patch -p0 < "${srcdir}/${pkgname}.pri.patch"
29   # Adding a link to libGLU
30   patch -p0 < "${srcdir}/${pkgname}.pro.patch"
32   /usr/bin/qmake
33   make
36 package() {
37   cd "${srcdir}/${pkgname}-${pkgver}"
38   
39   # Install data files
40   mkdir -p "${pkgdir}/usr/share/zhu3d"
41   cp -r {system,work,doc} "${pkgdir}/usr/share/zhu3d/"
43   # Install binary
44   install -D -m755 zhu3d "${pkgdir}/usr/bin/zhu3d"
46   # Install shortcut
47   install -D -m644 ../"${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
49   rm "${pkgdir}/usr/share/zhu3d/system/icons/.directory"