modrinth-app-bin: add package (0.15.20-1)
This commit is contained in:
1 parent
9bdaa7d21e
commit
b37fa50d17
3 files changed
+64
No files matched your search
@@ -0,0 +1,19 @@
|
||||
pkgbase = modrinth-app-bin
|
||||
pkgdesc = Minecraft mod manager and launcher from Modrinth (upstream binary)
|
||||
pkgver = 0.15.20
|
||||
pkgrel = 1
|
||||
url = https://modrinth.com/app
|
||||
arch = x86_64
|
||||
license = GPL-3.0-only
|
||||
depends = webkit2gtk-4.1
|
||||
depends = gtk3
|
||||
depends = hicolor-icon-theme
|
||||
provides = modrinth-app
|
||||
conflicts = modrinth-app
|
||||
noextract = modrinth-app-bin-0.15.20.deb
|
||||
options = !strip
|
||||
options = !debug
|
||||
source = modrinth-app-bin-0.15.20.deb::https://github.com/modrinth/code/releases/download/v0.15.20/Modrinth.App_0.15.20_amd64.deb
|
||||
sha256sums = b88f8f4b5b2017ad99fb3e89cbfe1dc1a6693aa67c2edf7e94ee959a42fb533a
|
||||
|
||||
pkgname = modrinth-app-bin
|
||||
@@ -0,0 +1,24 @@
|
||||
# Maintainer: Felitendo
|
||||
# This PKGBUILD is updated automatically:
|
||||
# https://github.com/Felitendo/PKGBUILDS
|
||||
|
||||
pkgname=modrinth-app-bin
|
||||
pkgver=0.15.20
|
||||
pkgrel=1
|
||||
pkgdesc="Minecraft mod manager and launcher from Modrinth (upstream binary)"
|
||||
arch=('x86_64')
|
||||
url="https://modrinth.com/app"
|
||||
license=('GPL-3.0-only')
|
||||
depends=('webkit2gtk-4.1' 'gtk3' 'hicolor-icon-theme')
|
||||
provides=('modrinth-app')
|
||||
conflicts=('modrinth-app')
|
||||
options=('!strip' '!debug')
|
||||
source=("${pkgname}-${pkgver}.deb::https://github.com/modrinth/code/releases/download/v${pkgver}/Modrinth.App_${pkgver}_amd64.deb")
|
||||
noextract=("${pkgname}-${pkgver}.deb")
|
||||
sha256sums=('b88f8f4b5b2017ad99fb3e89cbfe1dc1a6693aa67c2edf7e94ee959a42fb533a')
|
||||
|
||||
package() {
|
||||
bsdtar -xOf "$srcdir/${pkgname}-${pkgver}.deb" 'data.tar.*' \
|
||||
| bsdtar -xpf - -C "$pkgdir" usr
|
||||
ln -s ModrinthApp "$pkgdir/usr/bin/modrinth-app"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
# modrinth-app-bin - Modrinth App (https://github.com/modrinth/code),
|
||||
# Minecraft mod manager/launcher, Tauri.
|
||||
#
|
||||
# Upstream publishes a bundled .deb per release, so there is no
|
||||
# build_artifact() here: on a new version only pkgver and the checksum are
|
||||
# refreshed and the PKGBUILD repackages the deb directly.
|
||||
|
||||
UPSTREAM_REPO="modrinth/code"
|
||||
|
||||
latest_version() {
|
||||
gh api "repos/$UPSTREAM_REPO/releases/latest" --jq '.tag_name' | sed 's/^v//'
|
||||
}
|
||||
|
||||
# refresh_checksums <version> <pkgbuild-path>
|
||||
refresh_checksums() {
|
||||
local ver="$1" pkgbuild="$2"
|
||||
local sha
|
||||
sha="$(curl -sfL "https://github.com/$UPSTREAM_REPO/releases/download/v$ver/Modrinth.App_${ver}_amd64.deb" \
|
||||
| sha256sum | cut -d' ' -f1)"
|
||||
sed -i "s|^sha256sums=.*|sha256sums=('$sha')|" "$pkgbuild"
|
||||
}
|
||||
Reference in new issue
Block a user