diff options
author | Valère Monseur | 2022-02-09 23:07:23 +0100 |
---|---|---|
committer | Valère Monseur | 2022-02-09 23:07:23 +0100 |
commit | 64ff8935d7df2456819c83d3816cc6de9e820c21 (patch) | |
tree | 3a6ee1090c7a17a4aef5273dc217f74d3b3a5199 | |
parent | 0183204d97470681e7f185ff989201b3a270fcb0 (diff) | |
download | aur-64ff8935d7df2456819c83d3816cc6de9e820c21.tar.gz |
fix the build and build with GTK3
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 17 insertions, 20 deletions
@@ -1,19 +1,17 @@ pkgbase = cbatticon-git - pkgdesc = A lightweight and fast battery icon that sits in your system tray - pkgver = 0.r116.7ee9555 + pkgdesc = Lightweight battery icon for the system tray + pkgver = 1.6.12.r0.g63aaeaa pkgrel = 1 url = https://github.com/valr/cbatticon - arch = i686 arch = x86_64 - arch = armv7h + arch = i686 license = GPL2 makedepends = git + depends = gtk3 depends = libnotify - depends = gtk2 provides = cbatticon conflicts = cbatticon source = cbatticon::git+https://github.com/valr/cbatticon.git md5sums = SKIP pkgname = cbatticon-git - @@ -1,32 +1,31 @@ # Contributor: Colin Jones (xentalion) <colin@ergoeclectic.com> -# Maintainer: Valère Monseur <valere dot monseur at ymail dot com> +# Maintainer: Valère Monseur <archlinux at vale dot re> _pkgname=cbatticon pkgname=cbatticon-git -pkgver=0.r116.7ee9555 +pkgver=1.6.12.r0.g63aaeaa pkgrel=1 -pkgdesc='A lightweight and fast battery icon that sits in your system tray' -arch=('i686' 'x86_64' 'armv7h') +pkgdesc='Lightweight battery icon for the system tray' +arch=(x86_64 i686) url='https://github.com/valr/cbatticon' -license=('GPL2') -depends=('libnotify' 'gtk2') -makedepends=('git') -provides=('cbatticon') -conflicts=('cbatticon') +license=(GPL2) +depends=(gtk3 libnotify) +makedepends=(git) +provides=(cbatticon) +conflicts=(cbatticon) source=("$_pkgname"::'git+https://github.com/valr/cbatticon.git') md5sums=('SKIP') pkgver() { - cd "${srcdir}/${_pkgname}" - - printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$_pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - make -C "${_pkgname}" WITH_NOTIFY=1 WITH_GTK3=0 + make -C "$_pkgname" WITH_NOTIFY=1 WITH_GTK3=1 } package() { - make -C "${_pkgname}" PREFIX="${pkgdir}/usr" install + make -C "$_pkgname" PREFIX="$pkgdir/usr" install } |