blob: 9aec5f61fe420d0b03bbfcf1216d9571992bac85 (
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: Riolku <me [at] kgugeler [dot] ca>
pkgname=kambi
pkgver=0.1.2
pkgrel=1
pkgdesc='Simple rotating wallpaper client for Wayland'
arch=('x86_64')
url="https://git.sr.ht/~riolku/$pkgname"
license=('MIT')
depends=('gcc-libs' 'glibc')
makedepends=('cargo' 'scdoc')
provides=("$pkgname")
conflicts=('kambi-git')
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('8b0e2b5ef4e6affa76ab50fcdbf886fbfd69537f8539fc75645e5dcaa8cfa9c6')
prepare() {
cd "$srcdir/$pkgname-v$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$srcdir/$pkgname-v$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --locked
scdoc < man/kambi.5.scd > man/kambi.5
}
package() {
cd "$srcdir/$pkgname-v$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/kambi"
install -Dm0755 -t "$pkgdir/usr/share/man/man5" "man/kambi.5"
}
|