blob: 21729029b433a5b47478086af7084d85ef2b413a (
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
|
#Maintainer: Rein Fernhout (LevitatingBusinessMan) <me@levitati.ng>
pkgname=batmanager
pkgver=1.0.2
arch=("x86_64")
pkgrel=1
pkgdesc="Tool for configuring Lenovo battery settings"
license=("MIT")
depends=("acpi_call")
makedepends=("cargo")
url="https://github.com/LevitatingBusinessMan/$pkgname"
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
sha256sums=('6dd89df69b07ab643d685894ee42181943f1f7cc1b34940ebdc003ffc1b73a5f')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 target/release/$pkgname $pkgdir/usr/bin/$pkgname
}
|