diff options
author | Jonathan Hudson | 2022-09-17 08:58:55 +0100 |
---|---|---|
committer | Jonathan Hudson | 2022-09-17 08:58:55 +0100 |
commit | 543c8cdb126bd7954a6e413f908808ead3d6d579 (patch) | |
tree | 3d5263de6c80c479f445085e36fd4dcce78f0e3f | |
parent | 28aebc41e47bd560e88332db7d74a506396a2de0 (diff) | |
download | aur-543c8cdb126bd7954a6e413f908808ead3d6d579.tar.gz |
use meson to build
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | g-rays.install | 3 |
3 files changed, 35 insertions, 28 deletions
@@ -1,20 +1,24 @@ pkgbase = gtk-g-rays2 pkgdesc = Access the configuration data (and visualise NMEA data) from the WBT-201 GPS - pkgver = 2.05 + pkgver = 2.1.0 pkgrel = 1 - url = http://www.daria.co.uk/gps - install = g-rays.install + url = https://github.com/stronnag/gtk-g-rays2.git arch = i686 arch = x86_64 - arch = armv6l - arch = armv6h + arch = arm + arch = aarch64 arch = armv7h - arch = ppc + arch = pentium4 license = GPL + makedepends = git + makedepends = meson depends = gtk3 - depends = hicolor-icon-theme - source = http://www.zen35309.zen.co.uk/gps/gtk-g-rays2-2.05.tar.xz - sha512sums = 673d6e756f1a827e1c0de5384f3228e69a00a56588b81528202e80f5d2067213fd9fdb5af22028fcce0c4ea9e4d1b708accdd5777628ded351e3f2b6f2f57e41 + depends = bluez-libs + depends = libgudev + optdepends = gpsbabel: download log files + provides = gtk-g-rays2 + conflicts = gtk-g-rays2 + source = gtk-g-rays2::git+https://github.com/stronnag/gtk-g-rays2.git + sha512sums = SKIP pkgname = gtk-g-rays2 - @@ -1,27 +1,33 @@ # Maintainer: Jonathan Hudson <jh+gtk-g-rays@daria.co.uk> # Contributor: Lukas Kramer <lukas@carrotIndustries.net> pkgname=gtk-g-rays2 -pkgver=2.05 +pkgver=2.1.0 pkgrel=1 pkgdesc="Access the configuration data (and visualise NMEA data) from the WBT-201 GPS" -arch=(i686 x86_64 armv6l armv6h armv7h ppc) -url="http://www.daria.co.uk/gps" +arch=('i686' 'x86_64' 'arm' 'aarch64' 'armv7h' 'pentium4') +url='https://github.com/stronnag/gtk-g-rays2.git' license=('GPL') -depends=('gtk3' 'hicolor-icon-theme') -source=(http://www.zen35309.zen.co.uk/gps/gtk-g-rays2-$pkgver.tar.xz) -# shutup namcap -install='g-rays.install' +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 "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr --sysconfdir=/etc - make || return 1 + cd $pkgname + meson build --prefix=/usr --buildtype=release --strip + meson compile -C build } package() { - cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install + # executable + cd $pkgname + DESTDIR="$pkgdir" meson install -C build } - -sha512sums=('673d6e756f1a827e1c0de5384f3228e69a00a56588b81528202e80f5d2067213fd9fdb5af22028fcce0c4ea9e4d1b708accdd5777628ded351e3f2b6f2f57e41') - diff --git a/g-rays.install b/g-rays.install deleted file mode 100644 index a810b052b01f..000000000000 --- a/g-rays.install +++ /dev/null @@ -1,3 +0,0 @@ -post_install() { - gtk-update-icon-cache --quiet /usr/share/icons/hicolor -} |