2
0
This commit is contained in:
Andrea Scarpino 2020-02-05 11:22:19 +01:00
commit 8c54b0e081
2 changed files with 42 additions and 0 deletions

14
.SRCINFO Normal file
View File

@ -0,0 +1,14 @@
pkgbase = swaynag-battery
pkgdesc = Shows a message when your battery is discharging
pkgver = 0.1.1
pkgrel = 1
url = https://github.com/m00qek/swaynag-battery
arch = x86_64
arch = i686
license = MIT
makedepends = go
source = https://github.com/m00qek/swaynag-battery/archive/v0.1.1.tar.gz
sha256sums = 6c36fa0d7804e1b959d8207b5bdc24b95f499f8d403833ec470d83765af2ec16
pkgname = swaynag-battery

28
PKGBUILD Normal file
View File

@ -0,0 +1,28 @@
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=swaynag-battery
pkgver=0.1.1
pkgrel=1
pkgdesc="Shows a message when your battery is discharging"
arch=('x86_64' 'i686')
url="https://github.com/m00qek/swaynag-battery"
license=('MIT')
makedepends=('go')
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('6c36fa0d7804e1b959d8207b5bdc24b95f499f8d403833ec470d83765af2ec16')
build() {
cd "$pkgname-$pkgver"
go build \
-trimpath \
-ldflags "-X main.Version=$pkgver -extldflags $LDFLAGS" \
-o $pkgname .
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=4 sw=4 et: