summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b686e806f37e1c3c5c4012b98dcc8954fa443ba (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
41
42
43
44
# Contributor: Hinrich Harms <arch@hinrich.de>
# Contributor: sylvain alborini <sylvain.alborini@gmail.com>
# Maintainer: John Wallaby <drunken.wallaby@gmail.com>
# Co-Maintainer: Nikolay Korotkiy <sikmir@gmail.com>
_orgname=dfandrich
_pkgname=gpscorrelate
_branch=master
pkgname=${_pkgname}-git
pkgver=r175.f6401ff
pkgrel=1
pkgdesc='GPS Photo Correlation; Writes location data to EXIF tags using GPX files (command line and GTK interface).'
arch=('x86_64')
url='https://dfandrich.github.io/gpscorrelate/'
license=('GPL2')
depends=('libxml2' 'gtk3' 'exiv2')
makedepends=('git' 'libxslt')
provides=("${pkgname//-git}=${pkgver}")
conflicts=(${pkgname//-git})
source=("${_pkgname}-${_branch}::git://github.com/${_orgname}/${_pkgname}.git#branch=${_branch}")
sha256sums=('SKIP')

pkgver() {
  cd ${_pkgname}-${_branch}

  # Get the version number.
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${_pkgname}-${_branch}
  make prefix=/usr CFLAGS=-DENABLE_NLS
}

check() {
  cd ${_pkgname}-${_branch}
  make check
}

package() {
  cd ${_pkgname}-${_branch}
  make prefix=/usr DESTDIR=$pkgdir install install-po install-desktop-file
}

# vim: ft=sh ts=2 sw=2 et