blob: 59285973de611ca5f074f40d9b1cdbf15152fe40 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: DrakeTDL <everyone@disroot.org>
pkgname="an-anime-game-launcher-git"
_pkgname="${pkgname%-git}"
pkgver=3.2.1.r7.g711cc82
pkgrel=1
pkgdesc="A Launcher for a specific anime game with auto-patching, discord rpc and time tracking"
arch=("x86_64")
url="https://github.com/an-anime-team/an-anime-game-launcher"
license=("GPL3")
groups=()
depends=(
cabextract
curl
git
glibc
gtk4
iputils
libadwaita
tar
unzip
xdelta3
)
makedepends=(rust)
checkdepends=()
optdepends=(
"mangohud: FPS Hud/GUI"
"gamemode: Game Optimizations"
"gamescope: a tool from Valve that allows for games to run in an isolated Xwayland instance"
)
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(
"git+https://github.com/an-anime-team/an-anime-game-launcher"
"${_pkgname}.desktop"
)
noextract=()
sha256sums=(
SKIP
"3bb15b29fd47e60ead712a67046daf42bd0ba5547d379ead6ea9bba37ea7b137"
)
pkgver() {
cd "${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${_pkgname}"
git switch next
git submodule update --init --recursive --single-branch
}
build() {
cd "${_pkgname}"
cargo build --release
}
package() {
cd "${_pkgname}"
install -dm755 "${pkgdir}/usr/lib/${_pkgname}"
install -dm755 "${pkgdir}/usr/bin/"
cp target/release/anime-game-launcher "${pkgdir}/usr/lib/${_pkgname}/${_pkgname}"
ln -s "${pkgdir}/usr/lib/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "assets/images/icon.png" "${pkgdir}/usr/share/pixmaps/an-anime-game-launcher.png"
install -Dm644 "assets/images/icon.png" "${pkgdir}/usr/share/icons/moe.launcher.an-anime-game-launcher.png"
install -Dm644 "${srcdir}/an-anime-game-launcher.desktop" -t "${pkgdir}/usr/share/applications"
}
|