1 # Maintainer: Huguenin Loïs <huguenindl at gmail dot com>
5 pkgdesc="An application intended to sort files of the image type in graphic mode."
7 url="http://www.oqapy.eu/"
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'
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)