Skip to content

Instantly share code, notes, and snippets.

@MCMrARM
Last active December 13, 2018 15:36
Show Gist options
  • Save MCMrARM/283b60596eab27416da843df2ce5e91a to your computer and use it in GitHub Desktop.
Save MCMrARM/283b60596eab27416da843df2ce5e91a to your computer and use it in GitHub Desktop.
PKGBUILD for mcpelauncher-ui
pkgname=mcpelauncher-ui-git
pkgver=v0.1
pkgrel=1
pkgdesc="Minecraft: PE Linux launcher UI"
arch=('x86_64')
url="https://github.com/minecraft-linux/mcpelauncher-ui-manifest"
license=('MIT' 'GPL3')
makedepends=('git' 'cmake')
depends=('qt5-base' 'qt5-webengine' 'qt5-declarative' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'libzip' 'protobuf' 'mcpelauncher-linux')
provides=('mcpelauncher-ui')
conflicts=('mcpelauncher-ui')
source=(
'git://github.com/minecraft-linux/mcpelauncher-ui-manifest.git'
'git://github.com/minecraft-linux/file-util.git'
'git://github.com/MCMrARM/axml-parser.git'
'git://github.com/minecraft-linux/mcpelauncher-apkinfo.git'
'git://github.com/minecraft-linux/mcpelauncher-extract.git'
'google-play-api::git://github.com/MCMrARM/Google-Play-API.git'
'git://github.com/minecraft-linux/playdl-signin-ui-qt.git'
'git://github.com/minecraft-linux/mcpelauncher-ui-qt.git'
'git://github.com/minecraft-linux/mcpelauncher-proprietary.git'
)
md5sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
#pkgver() {
# cd "mcpelauncher-ui-manifest"
# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
#}
prepare() {
cd mcpelauncher-ui-manifest
git submodule init
git config submodule.file-util.url $srcdir/file-util
git config submodule.axml-parser.url $srcdir/axml-parser
git config submodule.mcpelauncher-apkinfo.url $srcdir/mcpelauncher-apkinfo
git config submodule.mcpelauncher-extract.url $srcdir/mcpelauncher-extract
git config submodule.google-play-api.url $srcdir/google-play-api
git config submodule.playdl-signin-ui-qt.url $srcdir/playdl-signin-ui-qt
git config submodule.mcpelauncher-ui-qt.url $srcdir/mcpelauncher-ui-qt
git submodule update file-util axml-parser mcpelauncher-apkinfo mcpelauncher-extract google-play-api playdl-signin-ui-qt mcpelauncher-ui-qt
cd mcpelauncher-ui-qt
git submodule init
git config submodule.Resources/proprietary.url $srcdir/mcpelauncher-proprietary
git submodule update Resources/proprietary
}
build() {
cd mcpelauncher-ui-manifest
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make
}
package() {
cd mcpelauncher-ui-manifest/build
make DESTDIR="$pkgdir" install
}
@nanpuyue
Copy link

nanpuyue commented Jul 24, 2018

depends+=(libzip qt5-quickcontrols)

@MCMrARM
Copy link
Author

MCMrARM commented Aug 22, 2018

Thanks, added these!

@ZebulanStanphill
Copy link

When I try to run makepkg -sic, the build fails. Here is the terminal output:
https://pastebin.com/t18cLFc3

I am guessing it has something to do with a missing dependency not listed in the PKGBUILD?

@ZebulanStanphill
Copy link

I tried building it again today and it worked. Not sure what changed, but I'm glad I can play Minecraft Bedrock on Linux now. 👍

@charveey
Copy link

When I try to build I get this error
mcpelauncher-extract <apk-file> <destination> ==> ERREUR : Une erreur s’est produite dans prepare(). Abandon…
Note: I've already compiled mcpelauncher-extract and linked it to /usr/bin

@CyberShadow
Copy link

Worked perfectly, thank you very much! I got to play my nephews' favorite game with them :)

@ptkato
Copy link

ptkato commented Nov 28, 2018

I guess protobuf is a dependency too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment