Fix issue when building in a path prefix with spaces in it

Quoting is the eternal bane of shell scripts.
This commit is contained in:
Petr Mrázek 2022-06-04 01:15:03 +02:00
parent 2c3ceaa79f
commit 64bfe9d031
2 changed files with 20 additions and 18 deletions

View file

@ -1,7 +1,7 @@
pkgbase = multimc-bin
pkgdesc = Free, open source launcher and instance manager for Minecraft.
pkgver = 1.6
pkgrel = 2
pkgrel = 3
url = http://multimc.org/
arch = i686
arch = x86_64

View file

@ -1,7 +1,7 @@
# Maintainer: Petr Mrázek <peterix@gmail.com>
pkgname=multimc-bin
pkgver=1.6
pkgrel=2
pkgrel=3
pkgdesc="Free, open source launcher and instance manager for Minecraft."
arch=('i686' 'x86_64')
url="http://multimc.org/"
@ -16,8 +16,10 @@ sha1sums=('b943427e5f32f6a41d77a373029731c67571901d'
noextract=("$pkgname-$pkgver.deb")
prepare() {
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
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"
}
package() {