This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
multimc5-offline/PKGBUILD
Taylor Smock 2b85fa7c22 Really fixed copy errors. I think
* Was moving files into subfolder.
2015-10-29 11:45:44 -06:00

44 lines
1.7 KiB
Bash
Executable file

# Maintainer: vorpalblade77@gmail.com
# Contributor: b.klettbach@gmail.com
pkgname=multimc5
pkgver=0.4.7
pkgrel=4
pkgdesc="Minecraft launcher with ability to manage multiple instances."
arch=('i686' 'x86_64')
url="http://multimc.org/"
license=('Apache')
depends=('qt5-base' 'qt5-x11extras' 'java-runtime' 'qt5-svg')
makedepends=('git' 'cmake' 'qt5-tools' 'qt5-x11extras' 'java-environment')
optdepends=('mcedit: Allows editing of minecraft worlds')
conflicts=('multimc5-git')
source=("https://github.com/MultiMC/MultiMC5/archive/${pkgver}.tar.gz"
'multimc5.sh'
'multimc5.desktop'
)
sha512sums=('237b566ee6b7e6ba0800790f0ec25e3e2fd6037688fd5b3105d8f3dfe880c3d0eeb5d08969b222b45cf815e8c616aef0bc955a4ac12bf65138a88f004ea2175f'
'6eb9476c8350fb8055238afc4d62f89897ea6d255a13edde88b76a67d021d88266d86236ef9ea9ebe82729b92cb7d8a9a66114de7c6b31666a82654dfe672049'
'a6712d0e84acc719ed1aff740717add44202f88cb42a0b7a3157108b73a1009ac7edd325f75d372e0a63617f40eb614d55fb4e24e5c1fb8957cd280486070675')
build() {
cd "$srcdir/MultiMC5-${pkgver}"
sed -i '/add_subdirectory(mmc_updater)/d' CMakeLists.txt
mkdir -p build
cd build
cmake $srcdir/MultiMC5-${pkgver}
make
}
package() {
cd "$srcdir/MultiMC5-${pkgver}/build"
install -D MultiMC $pkgdir/usr/lib/multimc5/MultiMC5
install -D $srcdir/multimc5.sh $pkgdir/usr/bin/multimc5
install -D $srcdir/MultiMC5-${pkgver}/application/resources/multimc/scalable/multimc.svg $pkgdir/usr/share/pixmaps/multimc5.svg
install -D $srcdir/multimc5.desktop $pkgdir/usr/share/applications/multimc5.desktop
install -D jars/NewLaunch.jar $pkgdir/usr/lib/multimc5/jars/NewLaunch.jar
install -D jars/JavaCheck.jar $pkgdir/usr/lib/multimc5/jars/JavaCheck.jar
}