summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 063cb4ec37051da7526fe5eb17bce580f3ce84b0 (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
# Maintainer: Jonathan Hudson <jh+gtk-g-rays@daria.co.uk>
# Contributor: Lukas Kramer <lukas@carrotIndustries.net>
pkgname=gtk-g-rays2
pkgver=2.1.0
pkgrel=1
pkgdesc="Access the configuration data (and visualise NMEA data) from the WBT-201 GPS"
arch=('i686' 'x86_64' 'arm' 'aarch64' 'armv7h' 'pentium4')
url='https://github.com/stronnag/gtk-g-rays2.git'
license=('GPL')
depends=('gtk3' 'bluez-libs' 'libgudev')
makedepends=('git' 'meson')
optdepends=('gpsbabel: download log files')
provides=("$pkgname")
conflicts=("$pkgname")
source=("$pkgname::git+$url")
sha512sums=('SKIP')

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

build() {
  cd $pkgname
  meson build --prefix=/usr --buildtype=release --strip
  meson compile -C build
}

package() {
  # executable
  cd $pkgname
  DESTDIR="$pkgdir" meson install -C build
}