updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / panotourpro / PKGBUILD
blobae117864719701315d77ea5fdb40dd585ac9a0bb
1 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
2 # Created: 18/03/2011
3 pkgname=panotourpro
4 pkgver=1.5.0
5 _pkgver=150
6 _pkgname=PanotourPro_$_pkgver
7 pkgrel=1
8 pkgdesc='Create pro-quality virtual tours'
9 arch=('i686' 'x86_64')
10 url='http://kolor.com/'
11 license=('custom: "commercial"')
12 depends=("qt>=4")
13 install=$pkgname.install
14 case $CARCH in
15   i686)
16   source=("PanotourPro_Linux32_150_2011-02-01.tar.gz::http://download.kolor.com/ptp/stable/linux32tar"
17   "$pkgname" "$pkgname.desktop")
18   md5sums=('c5bb7164619f5c60a2dbe5425f352928'
19          'e7bc184df7e778f46f922873d880e08a'
20          '0704b140470f7ff7492b76cf44e70b06')
21   ;;
22   x86_64)
23   source=("PanotourPro_Linux64_150_2011-02-01.tar.gz::http://download.kolor.com/ptp/stable/linux64tar"
24   "$pkgname" "$pkgname.desktop")
25   md5sums=('7119c127aeed1f338440a1768190335d'
26          'e7bc184df7e778f46f922873d880e08a'
27          '0704b140470f7ff7492b76cf44e70b06')
28   ;;
29 esac
30 package(){
31   cd "$srcdir/$_pkgname" || return 1
32   install -dm755 $pkgdir/opt/$pkgname || return 1
33   tar -c ./ | tar -x -C $pkgdir/opt/$pkgname || return 1
34   install -Dm755 $srcdir/$pkgname $pkgdir/usr/bin/$pkgname || return 1
35   rm -f $pkgdir/opt/$pkgname/libQt* || return 1
36   install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
39 # vim:set ts=2 sw=2 et ft=sh tw=100: