blob: 151192f3e3aa79007625687ca043f97cb05f1266 (
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
|
# Maintainer: Nick Webster <nick@nick.geek.nz>
pkgname=oled_shmoled
pkgver=0.2.1
pkgrel=1
pkgdesc="OLED displays don't have backlights but it'd be nice if we could pretend they do on Linux!"
arch=('x86_64')
url="https://github.com/NickGeek/oled-shmoled"
license=('GPL3')
depends=('gcc-libs')
makedepends=('rust')
source=(
$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate
)
md5sums=('1881446af0bcba6c81eda5cfa65106a9')
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked --all-features --target-dir=target
}
check() {
cd "$pkgname-$pkgver"
cargo test --release --locked --target-dir=target
}
package() {
cd "$pkgname-$pkgver"
install -Dm 755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin"
install -Dm 644 LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|