summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStetsed2023-06-21 12:55:16 +0200
committerStetsed2023-06-21 12:55:16 +0200
commit7bb85c3ce6386bcc044dfe22664be52310bf0290 (patch)
treee327413f9af1069ed02b2b9a3a18eff362900854
downloadaur-7bb85c3ce6386bcc044dfe22664be52310bf0290.tar.gz
Created package
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..025328d9e13c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = batterylog-framework-git
+ pkgdesc = Battery logging tool (git version)
+ pkgver = r15.4ae8059
+ pkgrel = 1
+ url = https://github.com/lhl/batterylog
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python
+ depends = sqlite3
+ source = git+https://github.com/lhl/batterylog.git
+ sha256sums = SKIP
+
+pkgname = batterylog-framework-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..05fa3048fa9e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+batterylog
+pkg
+src
+*.zst
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..7192ea39343d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Stetsed <aur.arch@stetsed.xyz>
+pkgname=batterylog-framework-git
+pkgver=r15.4ae8059
+pkgrel=1
+pkgdesc="Battery logging tool (git version)"
+arch=('any')
+url="https://github.com/lhl/batterylog"
+license=('MIT')
+depends=('python' 'sqlite3')
+makedepends=('git')
+source=("git+https://github.com/lhl/batterylog.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/batterylog"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/batterylog"
+}
+
+package() {
+ cd "$srcdir/batterylog"
+
+ sqlite3 batterylog.db <schema.sql
+
+ install -Dm644 batterylog.system-sleep "$pkgdir/usr/lib/systemd/system-sleep/batterylog"
+
+ install -d "$pkgdir/opt/batterylog"
+ cp -r . "$pkgdir/opt/batterylog"
+}