From bf6553301858a886b2a0c2c6adb4b0108e650fda Mon Sep 17 00:00:00 2001 From: Prasanna Venkadesh Date: Thu, 5 Feb 2026 23:19:29 +0530 Subject: [PATCH] First Commit - battinfo 0.2.1 --- .SRCINFO | 16 ++++++++++++++++ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a8ab72cc6a1f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = battinfo-git + pkgdesc = battinfo is a CLI tool & nim library to get battery detials. + pkgver = 0.2.1 + pkgrel = 1 + url = https://gitlab.com/prashere/battinfo + arch = x86_64 + license = GPL + makedepends = make + makedepends = git + makedepends = nim + provides = battinfo + conflicts = battinfo + source = git+https://gitlab.com/prashere/battinfo.git + sha256sums = SKIP + +pkgname = battinfo-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1c78c2b97033 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Prasanna Venkadesh + +pkgname=battinfo-git +pkgver=0.2.1 +pkgrel=1 +epoch= +pkgdesc="battinfo is a CLI tool & nim library to get battery detials." +arch=('x86_64') +url="https://gitlab.com/prashere/battinfo" +license=('GPL') +groups=() +depends=() +makedepends=('make' 'git' 'nim') +checkdepends=() +optdepends=() +provides=(battinfo) +conflicts=(battinfo) +replaces=() +backup=() +options=() +install= +changelog= +source=("git+$url.git") +noextract=() +sha256sums=('SKIP') +validpgpkeys=() + +build() { + cd battinfo + make build_bin +} + +package() { + cd battinfo + nimble install -p "--opt:size" --noRebuild # required to install library modules + install -Dm711 bin/battinfo "${pkgdir}/usr/local/bin/battinfo" # copy the binary file to corresponding location +}