updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / satviewer / PKGBUILD
blob7bffb88018df64fba7f180ef71108673270bf8f3
1 # Maintainer: moostik <mooostik_at_gmail.com>
3 pkgname=satviewer
4 pkgver=105
5 pkgrel=1
6 pkgdesc="Satellite tracking tool"
7 arch=('i686' 'x86_64')
8 url="http://satviewer.net/"
9 license=('GPL3')
10 depends=('qt' 'mesa')
11 source=("https://${pkgname}.googlecode.com/files/src${pkgver}.tgz"
12         "${pkgname}.desktop"
13         "${pkgname}.sh")
14 md5sums=('cfc7ad122eb58a5e2562f356c83a0314'
15          '70fd11e47233f5116cb09ed4ed00a02c'
16          'be0dc35a489563c1d16b0df004efb43c')
18 build() {
19   cd "${srcdir}/src${pkgver}"
20   qmake SatViewer.pro
21   make
24 package() {
25   cd "${srcdir}/src${pkgver}/bin"
26   install -D -m755 SatViewer "${pkgdir}/opt/${pkgname}/SatViewer"
27   cp -r profile plugins "${pkgdir}/opt/${pkgname}/"
28   install -d -m755 "${pkgdir}/usr/bin"
29   install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/satviewer"
31   # Install shortcut and icon
32   install -D -m644 "profile/icons/sat.png" \
33     "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
34   install -D -m644 "${srcdir}/${pkgname}.desktop" \
35     "${pkgdir}/usr/share/applications/${pkgname}.desktop"