diff options
author | ben lamothe | 2020-04-18 18:00:31 -0400 |
---|---|---|
committer | ben lamothe | 2020-04-18 18:00:31 -0400 |
commit | b68fa7923823b619977591702c6d3c78b8b22b86 (patch) | |
tree | 33a14f1995445c375009b6ccda1566dc81588129 | |
download | aur-b68fa7923823b619977591702c6d3c78b8b22b86.tar.gz |
initial pkgbuild commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e576d1195f10 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = powalert + pkgdesc = System battery and power status notifier. + pkgver = 0.1.0_alpha2 + pkgrel = 1 + url = https://github.com/zonotope/powalert + arch = i686 + arch = x86_64 + license = MIT + makedepends = cargo + provides = powalert + source = powalert-0.1.0-alpha2.tar.gz::https://github.com/zonotope/powalert/archive/0.1.0-alpha2.tar.gz + sha256sums = c69cbb383b4c6e67f1051673e55b9a03d3df4ea809ac9fac04d58327483098d9 + +pkgname = powalert + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..63f74f57b411 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/pkg/ +/powalert-0.1.0-alpha1.tar.gz +/powalert-0.1.0_alpha1-1-x86_64.pkg.tar.xz +/src/ +/powalert-0.1.0-alpha2.tar.gz +/powalert-0.1.0_alpha2-1-x86_64.pkg.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..109766f14a34 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Ben Lamothe <bl at 732 dot one> +pkgname=powalert +pkgver=0.1.0_alpha2 +pkgrel=1 +pkgdesc="System battery and power status notifier." +arch=('i686' 'x86_64') +url="https://github.com/zonotope/powalert" +license=('MIT') +makedepends=('cargo') +provides=('powalert') +source=("$pkgname-${pkgver//_/-}.tar.gz::https://github.com/zonotope/$pkgname/archive/${pkgver//_/-}.tar.gz") +sha256sums=("c69cbb383b4c6e67f1051673e55b9a03d3df4ea809ac9fac04d58327483098d9") + +build() { + cd "$srcdir/$pkgname-${pkgver//_/-}" + + cargo build --release +} + +# check() { +# cd "$srcdir/$pkgname-${pkgver//_/-}" + +# make -k check +# } + +package() { + cd "$srcdir/$pkgname-${pkgver//_/-}" + + install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "systemd/powalert.service" "$pkgdir/usr/lib/systemd/user/powalert.service" +} + +# vim:set ts=2 sw=2 et: |