blob: 22d015172bb46ae14b3b6d66054c0998626c1aae (
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
|
# Maintainer: Refreeze5911
# Maintainer: Antti <antti@antti.codes>
pkgname=modrinth-app-segfault-fix-bin
pkgver=0.8.9
pkgrel=1
pkgdesc='An unique, open source launcher that allows you to play your favorite mods, and keep them up to date, all in one neat little package.'
url='https://modrinth.com/app'
arch=('x86_64')
license=('GPL-3.0-only')
depends=(
# tauri deps
'openssl-1.1' 'dbus' 'freetype2' 'gtk3' 'libappindicator-gtk3' 'librsvg' 'libsoup' 'webkit2gtk-4.1'
# minecraft deps
'libgl' 'libpulse' 'libx11' 'libxcursor' 'libxext' 'libxxf86vm'
)
optdepends=(
'xorg-xrandr: for older minecraft versions'
)
provides=('modrinth-app')
conflicts=('modrinth-app')
source=(
"https://launcher-files.modrinth.com/versions/${pkgver}/linux/Modrinth%20App_${pkgver}_amd64.deb"
"modrinth-app"
"modrinth-file-extensions.xml"
)
sha256sums=('bf797d3170723ea7291be038948443883aa8e9ca902bf4064eb0725c4850fccc'
'8b4f95adec7a0d84b11c304430b1a1e5bcb8422314072b3c56ed53e22cd22030'
'e0b3eab49465709ed5053dc1fa4206071ab32657d25bd1f9c01850d696715cff')
build() {
cd "$srcdir/"
tar xf data.tar.gz
}
_binname="ModrinthApp"
package() {
cd "$srcdir"
find "./usr/share" -type f -print0 | while read -d $'\0' f; do
filename=$(basename -- "$f")
target="modrinth-app.${filename##*.}"
dir=$(dirname -- "$f")
install -Dm644 "$f" "$pkgdir/$dir/$target"
done
sed -i \
-e "s/Exec=${_binname}/Exec=modrinth-app %u/" \
-e "s/Icon=${_binname}/Icon=modrinth-app/" \
-e "s/mrpack/x-modrinth-mrpack/" \
"${pkgdir}/usr/share/applications/modrinth-app.desktop"
install -Dm755 "${srcdir}/usr/bin/${_binname}" "${pkgdir}/opt/modrinth-app/modrinth-app"
install -Dm755 "${srcdir}/modrinth-app" "${pkgdir}/usr/bin/modrinth-app"
install -Dm644 "${srcdir}/modrinth-file-extensions.xml" "${pkgdir}/usr/share/mime/packages/modrinth-file-extensios.xml"
}
|