summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37d1f78a0c10bce774f4bce297dc809534966e14 (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
40
# Maintainer: Piotr Rogo┼╝a <piotr dot r dot public at gmail dot com>

pkgname=photini-git
pkgver=2019.10.1.r21.gf7d6901
pkgrel=1
pkgdesc='An easy to use digital photograph metadata (EXIF, IPTC, XMP) editing application'
arch=('any')
url='https://github.com/jim-easterbrook/Photini'
license=('GPL')
depends=(
hicolor-icon-theme
libgexiv2
python-appdirs
python-gobject
python-sip
python-keyring
python-gpxpy
)
optdepends=(
'python-flickrapi: Upload to Flickr'
# 'python2-gdata: Upload to Picasa'
'gphoto2: access to camera'
)
makedepends=(git python)
source=('git://github.com/jim-easterbrook/Photini.git')
md5sums=('SKIP')
_gitname='Photini'
pkgver(){
  if [ -d "$srcdir"/$_gitname ]; then
    cd "$srcdir"/$_gitname
    set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  fi
}
package(){
  cd "$srcdir"/$_gitname
#   sed '142 s/^ /#/' -i setup.py
  python setup.py install --root="$pkgdir/" --optimize=1
}