diff options
author | Antti Ellilä | 2024-07-19 23:29:02 +0300 |
---|---|---|
committer | Antti Ellilä | 2024-07-20 16:22:23 +0300 |
commit | 705b4bf50569f8506ad9290de711dc74b8fadf92 (patch) | |
tree | 1da0ac9c3fe3217aab55e2a18227486e9b7710b8 | |
parent | b2bfba3e8dee26a6f4dacbf74e324f40e812458c (diff) | |
download | aur-705b4bf50569f8506ad9290de711dc74b8fadf92.tar.gz |
go back to using deb instead of appimage
use modrinth-app-appimage for the appimage version if it helps on your system
This reverts commit 145a495955460ed8efc38cc622d0c4d1602776fd.
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rwxr-xr-x | modrinth-app | 2 |
4 files changed, 42 insertions, 31 deletions
@@ -1,19 +1,30 @@ pkgbase = modrinth-app-bin 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. pkgver = 0.7.1 - pkgrel = 3 + pkgrel = 4 url = https://modrinth.com/app arch = x86_64 license = GPL3 - depends = fuse2 + depends = openssl-1.1 + depends = dbus + depends = freetype2 + depends = gtk3 + depends = libappindicator-gtk3 + depends = librsvg + depends = libsoup + depends = webkit2gtk + depends = libgl + depends = libpulse + depends = libx11 + depends = libxcursor + depends = libxext + depends = libxxf86vm + optdepends = xorg-xrandr: for older minecraft versions provides = modrinth-app conflicts = modrinth-app - noextract = modrinth-app_0.7.1_amd64.AppImage - options = !strip - options = !debug - source = modrinth-app-0.7.1.AppImage::https://launcher-files.modrinth.com/versions/0.7.1/linux/modrinth-app_0.7.1_amd64.AppImage + source = https://launcher-files.modrinth.com/versions/0.7.1/linux/modrinth-app_0.7.1_amd64.deb source = modrinth-app - sha256sums = 24f6a53b34eec89d9f8651daab871d5be0fe2616da8d163609728c2c1906c0c5 - sha256sums = 891da8d3927841954ee771c80fe6018b90553902dcfc9f1e945a2c52a80874bc + sha256sums = 9e2b1c187a3df1f5db87fd9fe214e4bccf67553d69325243bcb39f62514c6be6 + sha256sums = 5404b4e7b25903afe43ab2f2451be4b27f4823c6785327b166f2faa519fa38a9 pkgname = modrinth-app-bin diff --git a/.gitignore b/.gitignore index d8fb97845014..ce39cbd60837 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ pkg/ src/ -*.pkg.tar.zst -*.AppImage +*.pkg.tar* +*.deb @@ -1,38 +1,38 @@ # Maintainer: Antti <antti@antti.codes> pkgname=modrinth-app-bin -_pkgname=${pkgname%-bin} pkgver=0.7.1 -pkgrel=3 +pkgrel=4 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=('GPL3') depends=( - 'fuse2' + # tauri deps + 'openssl-1.1' 'dbus' 'freetype2' 'gtk3' 'libappindicator-gtk3' 'librsvg' 'libsoup' 'webkit2gtk' + # minecraft deps + 'libgl' 'libpulse' 'libx11' 'libxcursor' 'libxext' 'libxxf86vm' +) +optdepends=( + 'xorg-xrandr: for older minecraft versions' ) provides=('modrinth-app') conflicts=('modrinth-app') source=( - "$_pkgname-$pkgver.AppImage::https://launcher-files.modrinth.com/versions/${pkgver}/linux/modrinth-app_${pkgver}_amd64.AppImage" + "https://launcher-files.modrinth.com/versions/${pkgver}/linux/modrinth-app_${pkgver}_amd64.deb" "modrinth-app" ) -options=(!strip !debug) -noextract=("modrinth-app_${pkgver}_amd64.AppImage") -sha256sums=('24f6a53b34eec89d9f8651daab871d5be0fe2616da8d163609728c2c1906c0c5' - '891da8d3927841954ee771c80fe6018b90553902dcfc9f1e945a2c52a80874bc') - -package() { - cd "$srcdir" +sha256sums=('9e2b1c187a3df1f5db87fd9fe214e4bccf67553d69325243bcb39f62514c6be6' + '5404b4e7b25903afe43ab2f2451be4b27f4823c6785327b166f2faa519fa38a9') - chmod +x "$_pkgname-$pkgver.AppImage" - "./$_pkgname-$pkgver.AppImage" --appimage-extract "modrinth-app.desktop" - "./$_pkgname-$pkgver.AppImage" --appimage-extract "usr/share/icons/hicolor/128x128/apps/modrinth-app.png" - "./$_pkgname-$pkgver.AppImage" --appimage-extract "usr/share/icons/hicolor/256x256@2/apps/modrinth-app.png" - - cp -r "squashfs-root/usr/" "${pkgdir}" +build() { + cd "$srcdir/" + tar xf data.tar.gz +} - install -Dm644 "squashfs-root/modrinth-app.desktop" "$pkgdir/usr/share/applications/modrinth-app.desktop" - install -Dm755 "$_pkgname-$pkgver.AppImage" "$pkgdir/opt/modrinth-app/modrinth-app.AppImage" - install -Dm755 "modrinth-app" "$pkgdir/usr/bin/modrinth-app" +package() { + cp -r "${srcdir}/usr/" "${pkgdir}" + mkdir -p "${pkgdir}/opt/modrinth-app" + mv "${pkgdir}/usr/bin/modrinth-app" "${pkgdir}/opt/modrinth-app/" + install -Dm755 "${srcdir}/modrinth-app" "${pkgdir}/usr/bin/" } diff --git a/modrinth-app b/modrinth-app index f441f21ca9d7..c94bb7e58012 100755 --- a/modrinth-app +++ b/modrinth-app @@ -1,2 +1,2 @@ #!/bin/sh -APPIMAGELAUNCHER_DISABLE=1 /opt/modrinth-app/modrinth-app.AppImage "$@" +env WEBKIT_DISABLE_DMABUF_RENDERER=1 /opt/modrinth-app/modrinth-app "$@" |