summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1ff542cc62c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: David Schury <dasc@posteo.de>
+
+pkgname=battery-checker-git
+_pkgname=battery-checker
+pkgver=1.1
+pkgrel=1
+pkgdesc="Script determining if the laptop battery is low"
+url="https://gitlab.com/daersc/battery-checker"
+arch=('any')
+license=('GPL3')
+depends=('libnotify')
+conflicts=('battery-checker')
+provides=('battery-checker')
+source=("git+https://gitlab.com/daersc/$_pkgname.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/$_pkgname
+ git describe --tags | sed -e 's|-|.|g' -e 's|^v||'
+}
+
+package() {
+ mkdir -p $pkgdir/usr/bin
+ cp $srcdir/$_pkgname/check-battery $pkgdir/usr/bin
+}