blob: 7b5974aef1a754609310737b3007d48eaf7399e7 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Martin Kühl <martin.kuehl@posteo.net>
pkgname=color-scheme-monitor
pkgver=0.1.3
pkgrel=2
epoch=
pkgdesc="Monitor the system-wide color scheme and adapt unaware applications to it"
arch=(i686 x86_64 armv6h armv7h)
url="https://codeberg.org/mkhl/color-scheme-monitor/"
license=(0BSD)
groups=()
depends=(glibc gcc-libs dbus systemd xdg-desktop-portal)
makedepends=(cargo sed)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname-$pkgver.tar.gz::https://codeberg.org/mkhl/$pkgname/archive/v$pkgver.tar.gz")
noextract=()
sha512sums=('1d9f0aec68fa66474951d590ac6d9f5e7dfaea3e8d9405e1f9f2f8444e45c68ea49ab64f9567847bcf38090b9ebad2a93afe94b9c19e96a626f9c64ded3e4ce9')
validpgpkeys=()
prepare() {
cd "$pkgname"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
cd "$pkgname"
DESTDIR="$pkgdir/" PREFIX=/usr LIBEXECDIR=/usr/lib ./install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|