diff options
author | Solomon Choina | 2020-08-14 12:41:42 -0400 |
---|---|---|
committer | Solomon Choina | 2020-08-14 12:41:42 -0400 |
commit | c62f9aa2fddc775351d8b9ddc5362e93ea5b151b (patch) | |
tree | 9241437f03f1a7b4a5411a303a7968cc9b574018 | |
parent | a1707d5c81ccfcd2c2749e468644a6aaf5bdedff (diff) | |
download | aur-c62f9aa2fddc775351d8b9ddc5362e93ea5b151b.tar.gz |
nicer pkgver and PKGBUILD
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 10 insertions, 19 deletions
@@ -1,8 +1,6 @@ -# Generated by mksrcinfo v8 -# Fri May 25 19:31:46 UTC 2018 pkgbase = switchboard-plug-keyboard-git pkgdesc = Switchboard Keyboard Plug - pkgver = r850.9d478e5 + pkgver = 2.4.0.r16.g9d1ece0 pkgrel = 1 url = https://github.com/elementary/switchboard-plug-keyboard arch = x86_64 @@ -20,6 +18,7 @@ pkgbase = switchboard-plug-keyboard-git depends = libgnomekbd depends = libxklavier depends = libxml2 + depends = ibus depends = libgranite.so depends = libswitchboard-2.0.so provides = switchboard-plug-keyboard @@ -1,14 +1,15 @@ # Maintainer: Maxime Gauduin <alucryd@archlinux.org> pkgname=switchboard-plug-keyboard-git -pkgver=r850.9d478e5 +pkgver=2.4.0.r16.g9d1ece0 pkgrel=1 pkgdesc='Switchboard Keyboard Plug' arch=('x86_64') url='https://github.com/elementary/switchboard-plug-keyboard' license=('GPL3') groups=('pantheon-unstable') -depends=('glib2' 'glibc' 'gtk3' 'libgee' 'libgnomekbd' 'libxklavier' 'libxml2' +depends=('glib2' 'glibc' 'gtk3' 'libgee' 'libgnomekbd' + 'libxklavier' 'libxml2' 'ibus' 'libgranite.so' 'libswitchboard-2.0.so') makedepends=('git' 'granite-git' 'meson' 'switchboard-git' 'vala') provides=('switchboard-plug-keyboard') @@ -19,27 +20,18 @@ sha256sums=('SKIP') pkgver() { cd switchboard-plug-keyboard - echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" -} - -prepare() { - if [[ -d build ]]; then - rm -rf build - fi - mkdir build + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd build - arch-meson ../switchboard-plug-keyboard - ninja + arch-meson switchboard-plug-keyboard build + ninja -C build } package() { - cd build - - DESTDIR="${pkgdir}" ninja install + + DESTDIR="${pkgdir}" ninja -C build install } # vim: ts=2 sw=2 et: |