diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 11 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = piper-git pkgdesc = Piper is a GUI interface to ratbagd, the system daemon for configurable mice - pkgver = 0.2.900 + pkgver = 0.2.900.r30.g5f6ed20 pkgrel = 1 url = https://github.com/libratbag/piper arch = i686 @@ -16,7 +16,7 @@ pkgbase = piper-git provides = piper conflicts = piper options = !emptydirs - source = git+https://github.com/libratbag/piper.git + source = piper-git::git+https://github.com/libratbag/piper.git sha256sums = SKIP pkgname = piper-git @@ -2,7 +2,7 @@ # Contributor: Original Carlos Silva <r3pek@r3pek.org> pkgname=piper-git -pkgver=0.2.900 +pkgver=0.2.900.r30.g5f6ed20 pkgrel=1 pkgdesc='Piper is a GUI interface to ratbagd, the system daemon for configurable mice' arch=('i686' 'x86_64') @@ -11,19 +11,24 @@ license=('GPL') depends=('python3' 'python-gobject>=3.0' 'libratbag' 'python-evdev' 'python-lxml' 'python-cairo') makedepends=('meson') options=(!emptydirs) -source=("git+https://github.com/libratbag/piper.git") +source=("${pkgname}::git+https://github.com/libratbag/piper.git") sha256sums=('SKIP') conflicts=('piper') provides=('piper') +pkgver() { + cd "$pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + build() { - cd piper + cd "${srcdir}/${pkgname}" meson builddir --prefix=/usr/ ninja -C builddir } package() { - cd piper + cd "${srcdir}/${pkgname}" DESTDIR="${pkgdir}" ninja -C builddir install } |