updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / oqapy / PKGBUILD
blob9b0ab0262790f935c357e019504688c453eb2aa6
1 # Maintainer: Huguenin Loïs <huguenindl at gmail dot com>
2 pkgname=oqapy
3 pkgver=1.0.2
4 pkgrel=1
5 pkgdesc="An application intended to sort files of the image type in graphic mode."
6 arch=('i686' 'x86_64')
7     url="http://www.oqapy.eu/"
8     license=('GPL')
9     groups=()
10     install='.install'
11     depends=('python2>2.7' 'python2-pyqt>=4.5' 'pyexiv2' 'gphoto2' 'dcraw' 'python-imaging' 'openjdk6')
12     source=(http://www.oqapy.eu/releases/$pkgname-$pkgver.tar.gz)
13     md5sums=('44dad95754ac450f9580bc4a9a07cf07') #generate with 'makepkg -g'
15 #build() {
16 #   }
18 package() {
19       cd "$srcdir/$pkgname-$pkgver"
20       mkdir -p $pkgdir/usr/share/$pkgname-1.0/
21       mkdir -p $pkgdir/usr/share/doc/$pkgname/
22       mkdir -p $pkgdir/usr/bin/
23       mkdir -p $pkgdir/usr/share/applications/
24       cp README TODO $pkgdir/usr/share/doc/$pkgname/
25       cp *.py *.qm *.pro *.ts $pkgdir/usr/share/$pkgname-1.0/
26       cp *.desktop $pkgdir/usr/share/applications/
27       cp -r medias/ $pkgdir/usr/share/$pkgname-1.0/
28       cp -r config/ $pkgdir/usr/share/$pkgname-1.0/
29       cp  $pkgname $pkgdir/usr/bin/
30       sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
31              -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
32              -e "s|\"python\"|\"python2\"|" \
33                $(find $pkgdir -name "$pkgname.py" -or -name "$pkgname" -and -perm -o+rx -type f)