blob: 211eb61b32edb5cf78f1b35d1bff127109323e01 (
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
|
# Maintainer: Justus Tartz <aur at jrtberlin dot de>
# https://aur.archlinux.org/packages/steam-boilr-gui
pkgname=steam-boilr-gui
_app_id=io.github.philipk.boilr
pkgver=1.9.6
pkgrel=1
pkgdesc="Synchronize games from other platforms into your Steam library"
arch=('x86_64')
url="https://github.com/PhilipK/BoilR"
license=('Apache' 'MIT')
depends=('fontconfig' 'gcc-libs' 'hicolor-icon-theme')
makedepends=('cargo' 'cmake')
checkdepends=('desktop-file-utils' 'appstream-glib')
options=('!lto')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v.$pkgver.tar.gz")
sha256sums=('4149b80ab4b04027bc22cb80e1ae0f5aa95225dd441a51131b825de602ec85c3')
prepare() {
cd "BoilR-v.$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
# boilr binary name conflicts with boilr, boilr-bin & boilr-git AUR packages
sed -i 's/Exec=boilr/Exec=boilr-gui/g' "flatpak/${_app_id}.desktop"
}
build() {
cd "BoilR-v.$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
check() {
cd "BoilR-v.$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen
appstream-util validate-relax --nonet "flatpak/${_app_id}.appdata.xml"
desktop-file-validate "flatpak/${_app_id}.desktop"
}
package() {
cd "BoilR-v.$pkgver"
install -Dm755 target/release/boilr "$pkgdir/usr/bin/boilr-gui"
install -Dm644 "flatpak/${_app_id}.desktop" -t "$pkgdir/usr/share/applications/"
install -Dm644 "flatpak/${_app_id}.appdata.xml" -t "$pkgdir/usr/share/appdata/"
install -Dm644 LICENSE-MIT.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
for icon_size in 64 128 256; do
install -Dm644 "resources/${icon_size}/${_app_id}.png" -t \
"$pkgdir/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps/"
done
install -Dm644 "resources/${_app_id}.png" "$pkgdir/usr/share/icons/hicolor/32x32/apps/${_app_id}.png"
install -Dm644 resources/logo32.png "$pkgdir/usr/share/icons/hicolor/96x96/apps/${_app_id}.png"
}
|