Skip to content

Instantly share code, notes, and snippets.

@bbidulock
Created January 19, 2022 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbidulock/fe95806dfbbed9c3f2ac97658bcc9737 to your computer and use it in GitHub Desktop.
Save bbidulock/fe95806dfbbed9c3f2ac97658bcc9737 to your computer and use it in GitHub Desktop.
PKGBUILD.cbatticon-git
# Contributor: Colin Jones (xentalion) <colin@ergoeclectic.com>
# Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
pkgname=cbatticon-git
_pkgname=cbatticon
pkgver=1.6.10.r2.g6e3d436
pkgrel=2
pkgdesc='Lightweight battery icon for the system tray'
arch=(x86_64 i686 armv7h)
url='https://github.com/valr/cbatticon'
license=(GPL2)
depends=(gtk2 libnotify)
makedepends=('git')
provides=("${_pkgname}=${pkgver%%.r*}-${pkgrel}")
conflicts=("${_pkgname}")
source=("$pkgname::git+https://github.com/valr/cbatticon.git")
sha256sums=('SKIP')
prepare() {
cd $pkgname
sed -i -e "s;-Wno-format;$CFLAGS;" Makefile
}
pkgver() {
cd $pkgname
git describe --long --tags | sed -r 's,^[^0-9]*,,;s,-([0-9][0-9]*),.r\1,;s,[-_],.,g'
}
build() {
make -C "$pkgname" WITH_NOTIFY=1 WITH_GTK3=0
}
package() {
make -C "$pkgname" PREFIX="$pkgdir/usr" install
}
# getver: github.com/valr/cbatticon
# vim: ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment