blob: a074d3b6b5b3030ebfd408010a5e604739f11e63 (
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
28
29
30
31
32
33
|
# Maintainer: PaddiM8 <bakk@tuta.io>
pkgname=asahi-battery-threshold-git
_pkgname=asahi-battery-threshold
pkgver=v0.0.1.r1.gf084863
pkgrel=2
pkgdesc="A small daemon that allows setting a charging threshold for laptops running Asahi Linux."
arch=('aarch64')
url="https://github.com/PaddiM8/asahi-battery-threshold"
license=('MIT')
makedepends=('cargo' 'git')
provides=($_pkgname)
conflicts=($_pkgname)
source=('git+https://github.com/PaddiM8/asahi-battery-threshold')
b2sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $_pkgname
cargo build --release
}
package() {
cd $_pkgname
install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm664 "extra/$_pkgname.service" "$pkgdir/etc/systemd/system/$_pkgname.service"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|