summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 34ca3a973df543751c5ecce1aca58c697d6a51c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Robert Emil Berge <robert@rebi.no>
# Maintainer: AppleBloom <rat.o.drat@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=imgseek
pkgver=0.8.6
pkgrel=10
pkgdesc="a photo collection manager and viewer with content-based search and many other features"
url="http://www.imgseek.net"
depends=('pyqt3' 'imagemagick' 'python-imaging' 'python2-sip418')
arch=('i686' 'x86_64')
license=('GPL')
source=("http://downloads.sourceforge.net/sourceforge/imgseek/imgSeek-$pkgver.tar.bz2" 
        "python27.patch" 
        "make_it_work.patch")
md5sums=('4b311475b51be649deb45afd6a12eaa2'
         '18757ccbd513081228e993d6221060c1'
         'efab62e2f1b21196060e07293fe2dc1c')

_dir="imgSeek-$pkgver"

prepare() {
  cd "$_dir"
  patch -p1 -i ../make_it_work.patch
  patch -p1 -i ../python27.patch
}

build() {
  cd "$_dir"
  PYTHONPATH=/usr/lib/python2.7/site-packages/sip418 python2 setup.py build
}

package() {
  cd "$_dir"
  PYTHONPATH=/usr/lib/python2.7/site-packages/sip418 python2 setup.py install --prefix="$pkgdir"/usr
  cd "$pkgdir"/usr/lib/python2.7/site-packages/imgSeekLib
  ln -s ImageDB.py ImgDB.py
  sed -i '1s_.*_#!/usr/bin/env python2\nimport sys\nsys.path.insert(0, "/usr/lib/python2.7/site-packages/sip418")_' "$pkgdir/usr/bin/imgSeek"
}