summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Palenzuela2019-09-12 15:52:21 +0200
committerManuel Palenzuela2019-09-12 15:52:21 +0200
commitc3b951a4ba40ccabb27e99c9208120233f9e9b76 (patch)
tree13d7270445f8b0a8731d937f407913e8d976fa16
downloadaur-c3b951a4ba40ccabb27e99c9208120233f9e9b76.tar.gz
Initial Commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD40
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..646883f5f7d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = coreboot-battery-threshold-git
+ pkgdesc = Simple script to set battery thresholds on coreboot devices.
+ pkgver = 0
+ pkgrel = 1
+ url = https://github.com/Baitinq/coreboot-battery-threshold.git
+ arch = any
+ license = GPL
+ makedepends = git
+ depends = ectool
+ provides = coreboot-battery-threshold
+ source = git://github.com/Baitinq/coreboot-battery-threshold.git
+ md5sums = SKIP
+ sha1sums = SKIP
+ sha256sums = SKIP
+
+pkgname = coreboot-battery-threshold-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..53b03705e1c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Manuel Palenzuela <sadshinobi@protonmail.com>
+
+author=Baitinq
+pkgname=coreboot-battery-threshold-git
+_gitname=coreboot-battery-threshold
+pkgver=0
+pkgrel=1
+pkgdesc='Simple script to set battery thresholds on coreboot devices.'
+url='https://github.com/Baitinq/coreboot-battery-threshold.git'
+arch=('any')
+license=('GPL')
+depends=('ectool')
+makedepends=('git')
+provides=('coreboot-battery-threshold')
+
+source=("git://github.com/$author/$_gitname.git")
+
+md5sums=('SKIP')
+sha1sums=('SKIP')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_gitname"
+ printf '0.r%s.%s' \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+
+ # Install the program.
+ mkdir -p "$pkgdir/usr/share/$_gitname"
+ install -Dm755 coreboot-battery-threshold "${pkgdir}/usr/bin/$_gitname"
+ chmod +x "$pkgdir/usr/bin/$_gitname"
+ install -Dm 644 $pkgbase.service \
+ "$pkgdir/etc/systemd/system/$pkgbase.service"
+ cp -a --no-preserve=ownership * "$pkgdir/usr/share/$_gitname"
+ chmod -R 777 "$pkgdir/usr/share/$_gitname"
+
+}