updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / autopanopro / PKGBUILD
blobc87cfdf3fd03d77d7cbbb531e1c39f31188d8e32
1 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
2 # Created: 18/03/2011
3 pkgname=autopanopro
4 _pkgname=AutopanoPro
5 pkgver=2.5.0
6 pkgrel=1
7 pkgdesc='The program for creating panoramic images.'
8 arch=('i686' 'x86_64')
9 url='http://kolor.com/'
10 license=('custom: "commercial"')
11 depends=("qt>=4" "mesa")
12 install=autopanopro.install
13 case $CARCH in
14   i686)
15   source=("AutopanoPro_Linux32_250_2011-02-02.tar.gz::http://download.kolor.com/app/stable/linux32tar"
16   "$pkgname" "$pkgname.desktop")
17   md5sums=('c6672697c12a1c5c3b660c5147a9b020'
18          'af92ded056fe76463e51cef59b303ac5'
19          'abf0e0ddcc4071534378c4b69a559c51')
20   ;;
21   x86_64)
22     source=("AutopanoPro_Linux64_250_2011-02-02.tar.gz::http://download.kolor.com/app/stable/linux64tar"
23     "$pkgname" "$pkgname.desktop")
24     md5sums=('0b9d84193875f82a7cc3fa44db6f6e7a'
25          'af92ded056fe76463e51cef59b303ac5'
26          'abf0e0ddcc4071534378c4b69a559c51')
27   ;;
28 esac
29 package(){
30   cd "$srcdir/$_pkgname" || return 1
31   install -dm755 $pkgdir/opt/$pkgname || return 1
32   tar -c ./ | tar -x -C $pkgdir/opt/$pkgname || return 1
33   install -Dm755 ../$pkgname $pkgdir/usr/bin/$pkgname || return 1
34   rm -f $pkgdir/opt/$pkgname/libQt* || return 1
35   install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
38 # vim:set ts=2 sw=2 et ft=sh tw=100: