summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a756e789d2f984cb023553094d13d8ca692140fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Pierre Dommerc <dommerc.pierre@gmail.com>

pkgname=bato
pkgver=0.1.7
pkgrel=1
pkgdesc='Small program to send battery notifications'
arch=('x86_64')
url='https://github.com/doums/bato'
license=('MPL2')
depends=('libnotify')
makedepends=('rust' 'cargo' 'cmake')
provides=('bato')
conflicts=('bato')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('913ec8446f03ad6492b624c2d2da1d5b0ddd7a1a620e3450cf8d3ca24ffc8983')

build() {
  cd "$pkgname-$pkgver"
  cargo build --release --locked
}

package() {
  cd "$pkgname-$pkgver"
  install -Dvm 755 "target/release/bato" "$pkgdir/usr/bin/bato"
  install -Dvm 644 "bato.yaml" "$pkgdir/usr/share/doc/bato/config/bato.yaml"
}