updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / panotour / PKGBUILD
blob4bae0e3df9ccdaa133070d0f862de1b5df80c730
1 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
2 # Created: 18/03/2011
3 pkgname=panotour
4 pkgver=1.5.0
5 _pkgver=150
6 _pkgname=Panotour_$_pkgver
7 pkgrel=1
8 pkgdesc='Create 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=("Panotour_Linux32_150_2011-02-01.tar.gz::http://download.kolor.com/pt/stable/linux32tar"
17   "$pkgname" "$pkgname.desktop")
18   md5sums=('368cdf5c6db4aeba1385fd0961d90ee7'
19          '15cea7c40989ee387e944419edf3cc79'
20          'ad653a0e4cc8a90b6b32fb2c100454b4')
21   ;;
22   x86_64)
23   source=("Panotour_Linux64_150_2011-02-01.tar.gz::http://download.kolor.com/pt/stable/linux64tar"
24   "$pkgname" "$pkgname.desktop")
25 md5sums=('04e711e656f91d1689b88a9ed2945c7b'
26          '15cea7c40989ee387e944419edf3cc79'
27          'ad653a0e4cc8a90b6b32fb2c100454b4')
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: