diff options
author | Michael Prager | 2024-01-02 01:22:19 +0100 |
---|---|---|
committer | Michael Prager | 2024-01-02 01:33:43 +0100 |
commit | 45c28d314dfc2ba15f3d7d61af74c4569d182cc2 (patch) | |
tree | c3e7f2e662de1fc272e351e3cd5c19138b56d501 | |
parent | 4abee584d22f08d7622bb55e782ea2b6466df275 (diff) | |
download | aur-45c28d314dfc2ba15f3d7d61af74c4569d182cc2.tar.gz |
Switched to more up-to-date (and fixed) git version instead of patching the outdated release package
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 24 insertions, 21 deletions
@@ -1,17 +1,19 @@ pkgbase = srmio pkgdesc = library + command line tools to access a "Schoberer Rad Messtechnik" PowerControl V, VI and 7 + read/write their files - pkgver = 0.1.1~git1 - pkgrel = 2 + pkgver = 0.1.1git1.r6.gb444b87 + pkgrel = 1 url = http://www.zuto.de/project/srmio/ arch = i686 arch = x86_64 - license = custom: Rainer Clasen + license = MIT makedepends = gcc makedepends = make + makedepends = git + makedepends = autoconf options = !strip options = !buildflags options = staticlibs - source = https://github.com/rclasen/srmio/archive/refs/tags/v0.1.1git1.tar.gz - md5sums = 09aaa574e130431b1b943329e9029ff0 + source = git+https://github.com/rclasen/srmio.git + sha256sums = SKIP pkgname = srmio @@ -1,31 +1,32 @@ -# Maintainer: Ammann Max <maximilian.ammann@googlemail.com> +# Maintainer: Michael Prager <archlinuxaur@michaelprager.de> +# Contributor: Ammann Max <maximilian.ammann@googlemail.com> pkgname=srmio -pkgver=0.1.1~git1 -pkgrel=2 +pkgver=0.1.1git1.r6.gb444b87 +pkgrel=1 pkgdesc="library + command line tools to access a \"Schoberer Rad Messtechnik\" PowerControl V, VI and 7 + read/write their files" arch=('i686' 'x86_64') url="http://www.zuto.de/project/srmio/" -license=('custom: Rainer Clasen') -makedepends=('gcc' 'make') +license=('MIT') +makedepends=('gcc' 'make' 'git' 'autoconf') depends=() options=('!strip' '!buildflags' 'staticlibs') -source=(https://github.com/rclasen/srmio/archive/refs/tags/v0.1.1git1.tar.gz) -md5sums=('09aaa574e130431b1b943329e9029ff0') -pkgverstripped=$(echo $pkgver | sed -r 's/~//g') +source=('git+https://github.com/rclasen/srmio.git') +sha256sums=('SKIP') -build() { - cd "${srcdir}/srmio-$pkgverstripped/" +pkgver() { + cd "$pkgname" + git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} - # resurrect a variable that would have been generated by a now obsolete autoconf macro. Noweverdays this is simply always true. - export ac_cv_header_time=yes - # package on github does not ship with pre-generated configuration in contrast to the pacakge that was available on zuto.de +build() { + cd "$pkgname" sh ./genautomake.sh - ./configure --prefix=/usr/ - make -j8 + make } package() { - cd "${srcdir}/srmio-$pkgverstripped/" + cd "$pkgname" make DESTDIR="$pkgdir/" install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |