2021-11-26 14:21:25 -07:00
|
|
|
# Maintainer: Petr Mrázek <peterix@gmail.com>
|
2021-05-11 07:18:25 -07:00
|
|
|
pkgname=multimc-bin
|
2021-11-26 14:21:25 -07:00
|
|
|
pkgver=1.6
|
2022-06-03 16:15:03 -07:00
|
|
|
pkgrel=3
|
2021-05-11 07:18:25 -07:00
|
|
|
pkgdesc="Free, open source launcher and instance manager for Minecraft."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://multimc.org/"
|
|
|
|
license=('Apache')
|
2022-05-09 00:20:15 -07:00
|
|
|
depends=('zlib' 'opengl-driver' 'qt5-base' 'qt5-x11extras' 'qt5-svg' 'xorg-xrandr' 'zenity' 'wget')
|
2021-05-11 07:18:25 -07:00
|
|
|
conflicts=('multimc' 'multimc5' 'multimc5-git')
|
|
|
|
provides=('multimc' 'multimc5' 'multimc5-git')
|
2022-05-10 11:52:27 -07:00
|
|
|
source=("$pkgname-$pkgver.deb::https://files.multimc.org/downloads/multimc_$pkgver-1.deb"
|
2022-05-09 00:20:15 -07:00
|
|
|
"https://raw.githubusercontent.com/MultiMC/Launcher/f45f83173662ea8d28a6d69a5312679df76d762b/launcher/package/ubuntu/multimc/usr/share/man/man1/multimc.1")
|
2021-12-16 16:59:12 -07:00
|
|
|
sha1sums=('b943427e5f32f6a41d77a373029731c67571901d'
|
|
|
|
'b4f1dfc021fbf6be22b066734364a1f87ed37214')
|
2021-05-11 07:18:25 -07:00
|
|
|
noextract=("$pkgname-$pkgver.deb")
|
|
|
|
|
|
|
|
prepare() {
|
2022-06-03 16:15:03 -07:00
|
|
|
mkdir -p "$pkgname-$pkgver"
|
|
|
|
bsdtar -xf $pkgname-$pkgver.deb -C "$pkgname-$pkgver"
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
bsdtar -xf data.tar.xz -C "$srcdir/$pkgname-$pkgver"
|
2021-05-11 07:18:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-06-03 16:15:03 -07:00
|
|
|
mkdir -p "$pkgdir/opt/multimc"
|
|
|
|
mkdir -p "$pkgdir/usr/share/metainfo"
|
|
|
|
mkdir -p "$pkgdir/usr/share/applications"
|
|
|
|
mkdir -p "$pkgdir/usr/bin"
|
|
|
|
mkdir -p "$pkgdir/usr/share/man/man1"
|
2021-05-11 07:18:25 -07:00
|
|
|
|
2022-06-03 16:15:03 -07:00
|
|
|
cp -R "$srcdir/$pkgname-$pkgver/opt/multimc/" -T "$pkgdir/opt/multimc/"
|
|
|
|
cp -R "$srcdir/$pkgname-$pkgver/usr/share/metainfo/" -T "$pkgdir/usr/share/metainfo/"
|
|
|
|
cp -R "$srcdir/$pkgname-$pkgver/usr/share/applications/" -T "$pkgdir/usr/share/applications/"
|
2021-05-11 07:18:25 -07:00
|
|
|
|
2022-06-03 16:15:03 -07:00
|
|
|
install -m644 -D "$srcdir/$pkgname-$pkgver/usr/share/applications/multimc.desktop" "$pkgdir/usr/share/applications/multimc.desktop"
|
|
|
|
install -m644 -D "$srcdir/$pkgname-$pkgver/usr/share/metainfo/multimc.metainfo.xml" "$pkgdir/usr/share/metainfo/multimc.metainfo.xml"
|
|
|
|
install -m644 -D "$srcdir/$pkgname-$pkgver/opt/multimc/icon.svg" "$pkgdir/opt/multimc/icon.svg"
|
|
|
|
install -m755 -D "$srcdir/$pkgname-$pkgver/opt/multimc/run.sh" "$pkgdir/opt/multimc/run.sh"
|
|
|
|
install -m755 -D "$srcdir/multimc.1" "$pkgdir/usr/share/man/man1/multimc.1"
|
|
|
|
ln -s "/opt/multimc/run.sh" "$pkgdir/usr/bin/multimc"
|
2021-05-11 07:18:25 -07:00
|
|
|
}
|