diff options
author | Solomon Choina | 2020-08-10 16:38:08 -0400 |
---|---|---|
committer | Solomon Choina | 2020-08-10 16:38:08 -0400 |
commit | e9bc30ac6822d5cbafc823b4c93d4a807dbbd78a (patch) | |
tree | a118c442213a20665d21a466baf4a71c3b821f1a /PKGBUILD | |
parent | 6d73328c8a1738b122c62227fb6f638da6a45f99 (diff) | |
download | aur-e9bc30ac6822d5cbafc823b4c93d4a807dbbd78a.tar.gz |
better pkgver and using wingpanel stable
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 6 insertions, 16 deletions
@@ -1,7 +1,7 @@ # Maintainer: Maxime Gauduin <alucryd@archlinux.org> pkgname=wingpanel-indicator-bluetooth-git -pkgver=r209.4ae3f1e +pkgver=2.1.5.r9.g94b430e pkgrel=1 pkgdesc='Bluetooth indicator for Wingpanel' arch=('x86_64') @@ -10,7 +10,7 @@ license=('GPL3') groups=('pantheon-unstable') depends=('bluez' 'glib2' 'glibc' 'gtk3' 'libgee' 'libwingpanel-2.0.so') -makedepends=('git' 'granite-git' 'intltool' 'meson' 'vala' 'wingpanel-git') +makedepends=('git' 'granite-git' 'intltool' 'meson' 'vala' 'wingpanel') provides=('wingpanel-indicator-bluetooth') conflicts=('wingpanel-indicator-bluetooth') source=('git+https://github.com/elementary/wingpanel-indicator-bluetooth.git') @@ -19,27 +19,17 @@ sha256sums=('SKIP') pkgver() { cd wingpanel-indicator-bluetooth - 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 ../wingpanel-indicator-bluetooth - ninja + arch-meson wingpanel-indicator-bluetooth build + ninja -C build } package() { - cd build - - DESTDIR="${pkgdir}" ninja install + DESTDIR="${pkgdir}" ninja -C build install } # vim: ts=2 sw=2 et: |