First
This commit is contained in:
commit
8c54b0e081
14
.SRCINFO
Normal file
14
.SRCINFO
Normal 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
28
PKGBUILD
Normal 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:
|
Loading…
Reference in New Issue
Block a user