blob: d20a771da0ea96526d16ffc0b4c54c5888c2258f (
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
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Kimiblock Moe
pkgname=turnon
pkgdesc="Turn on devices in your local network"
url="https://github.com/swsnr/turnon"
license=("MPL-2.0")
arch=("x86_64" "aarch64")
pkgver=2.0.0
pkgrel=1
makedepends=("rust" "cargo" "git")
depends=(libadwaita gtk4 hicolor-icon-theme graphene dconf blueprint-compiler gcc-libs glib2 glibc)
source=("git+https://github.com/swsnr/turnon.git#tag=v${pkgver}")
md5sums=("SKIP")
provides=("turnon")
#function pkgver() {
# cd "${srcdir}/turnon"
# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
#}
function prepare() {
cd "${srcdir}/turnon"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
function build() {
cd "${srcdir}/turnon"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
RUST_BACKTRACE=1 SKIP_BLUEPRINT=1 cargo build --release --locked
make msgfmt
}
function check() {
cd "${srcdir}/turnon"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
function package() {
cd "${srcdir}/turnon"
install -Dm755 "${srcdir}/turnon/target/release/turnon" "${pkgdir}/usr/bin/de.swsnr.turnon"
make LOCALEDIR="${pkgdir}/usr/share/locale" install-locale
install -Dm644 \
resources/icons/scalable/apps/de.swsnr.turnon.svg \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/de.swsnr.turnon.svg"
install -Dm644 \
de.swsnr.turnon.desktop \
"${pkgdir}/usr/share/applications/de.swsnr.turnon.desktop"
install -Dm644 resources/de.swsnr.turnon.metainfo.xml \
"${pkgdir}/usr/share/metainfo/de.swsnr.turnon.metainfo.xml"
install -Dm644 dbus-1/de.swsnr.turnon.service \
"${pkgdir}/usr/share/dbus-1/services/de.swsnr.turnon.service"
install -Dm644 \
de.swsnr.turnon.search-provider.ini \
"${pkgdir}/usr/share/gnome-shell/search-providers/de.swsnr.turnon.search-provider.ini"
}
|