diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 23 insertions, 12 deletions
@@ -1,32 +1,43 @@ # Contributor: Hinrich Harms <arch@hinrich.de> # Contributor: sylvain alborini <sylvain.alborini@gmail.com> # Maintainer: John Wallaby <drunken.wallaby@gmail.com> - +_orgname=dfandrich _pkgname=gpscorrelate -pkgname=gpscorrelate-git +_branch=master +pkgname=${_pkgname}-git pkgver=r149.a6bc064 -pkgrel=5 +pkgrel=6 pkgdesc='GPS Photo Correlation; Writes location data to EXIF tags using GPX files (command line and GTK interface).' +arch=('x86_64') url='https://github.com/freefoote/gpscorrelate' -license=('GPL') -source=('git+https://github.com/dfandrich/gpscorrelate') -sha256sums=('SKIP') -arch=('any') +license=('GPL2') depends=('libxml2' 'gtk2' '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 "${srcdir}/${_pkgname}" + 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 $srcdir/${_pkgname} - make CFLAGS=-DENABLE_NLS prefix=/usr DESTDIR=$pkgdir install install-po || return 1 - install -Dm644 gpscorrelate-gui.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/gpscorrelate-gui.svg" - install -Dm644 gpscorrelate.desktop "$pkgdir/usr/share/applications/gpscorrelate.desktop" + cd ${_pkgname}-${_branch} + make prefix=/usr DESTDIR=$pkgdir install install-po install-desktop-file } # vim: ft=sh ts=2 sw=2 et |