summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00bcccb99c31a5937a9798edf7b3516d4f63c86d (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
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>

_pkgname=osm-gps-map
pkgname=$_pkgname-git
pkgver=1.2.0.r36.g2396aa6
pkgrel=1
pkgdesc="Gtk+ widget for displaying OpenStreetMap tiles"
arch=(x86_64)
url="https://nzjrs.github.io/osm-gps-map/"
license=(GPL2)
depends=(gtk3 libsoup)
makedepends=(git gtk-doc gobject-introspection autoconf-archive)
source=(git+https://github.com/nzjrs/${_pkgname}.git)
md5sums=('SKIP')
provides=($_pkgname)
conflicts=($_pkgname)

pkgver() {
  cd $_pkgname
  git describe --tags --long | sed -r "s/^${_pkgname}-//;s/([^-]*-g)/r\\1/;s/-/./g"
}

build() {
  cd $srcdir/$_pkgname
  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --enable-gtk-doc
  make
}

package() {
  cd $srcdir/$_pkgname
  make DESTDIR=$pkgdir install
}