diff options
author | Nikolay Korotkiy | 2019-03-19 00:40:57 +0300 |
---|---|---|
committer | Nikolay Korotkiy | 2019-03-19 00:41:39 +0300 |
commit | b871eb91fc728bbb696f7d2f3a0ebd7da9526b0e (patch) | |
tree | af2a597952595b3638681be9b2af852a99f7eef1 | |
parent | 836a1635bdf6c5a3ee10647fb1546841f5b5f04f (diff) | |
download | aur-b871eb91fc728bbb696f7d2f3a0ebd7da9526b0e.tar.gz |
fix license, arch; add check; minor cleanup
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 35 |
3 files changed, 33 insertions, 16 deletions
@@ -1,10 +1,12 @@ +# Generated by makepkg 5.1.3 +# Mon Mar 18 21:23:24 UTC 2019 pkgbase = gpscorrelate-git pkgdesc = GPS Photo Correlation; Writes location data to EXIF tags using GPX files (command line and GTK interface). pkgver = r149.a6bc064 - pkgrel = 5 + pkgrel = 6 url = https://github.com/freefoote/gpscorrelate - arch = any - license = GPL + arch = x86_64 + license = GPL2 makedepends = git makedepends = libxslt depends = libxml2 @@ -12,7 +14,7 @@ pkgbase = gpscorrelate-git depends = exiv2 provides = gpscorrelate=r149.a6bc064 conflicts = gpscorrelate - source = git+https://github.com/dfandrich/gpscorrelate + source = gpscorrelate-master::git://github.com/dfandrich/gpscorrelate.git#branch=master sha256sums = SKIP pkgname = gpscorrelate-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..d9be173341db --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +gpscorrelate-* +pkg +src @@ -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 |