blob: d6c08645a2a349ed750c7cf23b306bc9d5a76f06 (
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
|
# Maintainer: Bazyli Cyran <bazyli@cyran.dev>
pkgname=timewall
pkgver=1.2.0
pkgrel=1
pkgdesc='Apple dynamic HEIF wallpapers on GNU/Linux'
url='https://github.com/bcyran/timewall'
provides=('timewall')
conflicts=('timewall-bin')
depends=('libheif')
makedepends=('cargo')
checkdepends=('cargo')
license=('MIT')
arch=('x86_64')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bcyran/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('5d4bd283fb00723acc24c4d966ecc9dc4aa9e3212dcd915cf589beb227bd95fc')
build() {
cd "${pkgname}-${pkgver}"
export SHELL_COMPLETIONS_DIR="completions"
mkdir -p "${SHELL_COMPLETIONS_DIR}"
cargo build --release --locked
}
check() {
cd "${pkgname}-${pkgver}"
cargo test --release --locked
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm 755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 "completions/${pkgname}.bash" -t "${pkgdir}/usr/share/bash-completion/completions"
install -Dm 644 "completions/_${pkgname}" -t "${pkgdir}/usr/share/zsh/site-functions"
install -Dm 644 "completions/${pkgname}.fish" -t "${pkgdir}/usr/share/fish/vendor_completions.d"
install -Dm 644 "timewall.service" -t "${pkgdir}/usr/lib/systemd/user"
}
|