First Commit - battinfo 0.2.1

This commit is contained in:
Prasanna Venkadesh 2026-02-05 23:19:29 +05:30
commit bf65533018
2 changed files with 53 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -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

37
PKGBUILD Normal file
View file

@ -0,0 +1,37 @@
# Maintainer: Prasanna Venkadesh <prasmailme@gmail.com>
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
}