summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDavid Schury2020-02-22 17:50:26 +0100
committerDavid Schury2020-02-22 17:50:26 +0100
commit35bf5fd4304b4b4db897dbfb82ab04127bc1ece5 (patch)
treedf9e8a40b8f7c0c98a488e45af401eae1668668f /PKGBUILD
downloadaur-battery-checker-git.tar.gz
Initial import
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
+}