summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f82a26211e2b641b9dd71cd97978f72eb7f3f202 (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
# Maintainer: jose <jose1711 [at] gmail (dot) com>

pkgname=gpxviewer-git
arch=('i686' 'x86_64')
pkgver=r369.dd78678
pkgrel=1
pkgdesc="a simple program to visualize a gpx file (git)"
license=('GPL2')
# url="http://blog.sarine.nl/gpx-viewer/"
url="https://github.com/DaveDavenport/gpx-viewer"
depends=('vala' 'libchamplain' 'intltool' 'gdl')
conflicts=(gpxviewer)
replaces=(gpxviewer)
makedepends=('git' 'meson')
source=("${pkgname}"::git+https://github.com/DaveDavenport/gpx-viewer.git)
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${srcdir}/${pkgname}
  meson --prefix /usr --buildtype=plain . builddir
  ninja -C builddir
}

package() {
  cd $srcdir/$pkgname
  DESTDIR="$pkgdir" ninja -C builddir install
}