blob: 4e58e94968f8041c5fb08067ed810dfec63f9aa9 (
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: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Corey Hinshaw <corey(at)electrickite(dot)org>
pkgname=system76-oled
pkgver=0.1.5
pkgrel=1
pkgdesc="Control brightness on System76 OLED displays"
arch=('x86_64')
url="https://github.com/pop-os/system76-oled"
license=('GPL-3.0-or-later')
depends=('dbus' 'libx11' 'libxrandr')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('2607cfc25b41446a16f01dc8c2eb49d6922ee8991b5fb655b571c2d4e79f9da6')
prepare() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
|