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>
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"
15 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz" \
17 "${pkgname}.pri.patch"
18 "${pkgname}.pro.patch")
19 md5sums=('c298c95936acce297a3d5616b2ea9d26'
20 '48770d40bf1d9dd8f420365f2b0238cf'
21 '60ae9163e2e34d87e9c13def14a46a11'
22 '5e9fbe67d6fe3bddc15e1994b376c28e')
25 cd "${srcdir}/${pkgname}-${pkgver}"
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"
37 cd "${srcdir}/${pkgname}-${pkgver}"
40 mkdir -p "${pkgdir}/usr/share/zhu3d"
41 cp -r {system,work,doc} "${pkgdir}/usr/share/zhu3d/"
44 install -D -m755 zhu3d "${pkgdir}/usr/bin/zhu3d"
47 install -D -m644 ../"${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
49 rm "${pkgdir}/usr/share/zhu3d/system/icons/.directory"