mcpelauncher-linux icon indicating copy to clipboard operation
mcpelauncher-linux copied to clipboard

Could someone make a AUR package for Archlinux??

Open noomly opened this issue 9 years ago • 7 comments

I have not got to succeed at building the project so if someone could build an AUR package, it would be very cool :)

noomly avatar Nov 22 '15 17:11 noomly

I tried to, the PKGBUILD I wrote compiles the launcher and extracts the game just fine, but for some reason the game crashes on start. If I just manually do everything it works and I can play fine.

Here it is if someone wants to try. Keep in mind though:

  • you need a minecraft.apk file next to the PKGBUILD or the package won't build.
  • the /usr/bin/mcpe shortcut doesn't work. A simple script fixes it but the game still won't work. To try to play, just cd /opt/mcpe/ then run ./mcpelauncher. I thought it was a permission problem but even as root it won't start.
pkgname="mcpe-launcher"
pkgver="git"
pkgdesc="launcher for Minecraft: Pocket Edition. Requires a google account with a purchased copy of Minecraft: Pocket Edition"
pkgrel=1
arch=('x86_64')
url="https://github.com/MCMrARM/mcpelauncher-linux"
depends=('lib32-libx11' 'lib32-zlib' 'lib32-libpng')
makedepends=('cmake')
source=(https://github.com/MCMrARM/mcpelauncher-linux/archive/master.zip minecraft.apk)
md5sums=('SKIP' 'SKIP')

build() {
  cp -r ./mcpelauncher-linux-master/* .
        cmake .
        make
        sh extract.sh ./minecraft.apk 
}

package() {
        mkdir -p "$pkgdir/opt/mcpe/"
        cp -r $srcdir/* "$pkgdir/opt/mcpe/"
  mkdir -p "$pkgdir/usr/bin/"
        ln -s "$pkgdir/opt/mcpe/mcpelauncher" "$pkgdir/usr/bin/mcpe"
}

fazo96 avatar Jul 02 '16 11:07 fazo96

A bit late but thank you ! Also, it would be great if uploaded to AUR, is it possible now ?

noomly avatar Jul 12 '16 12:07 noomly

I don't know, I won't upload this to the AUR because it doesn't work, and I haven't tried to fix it... I don't really have the time now, but maybe someone more skilled than me does

fazo96 avatar Jul 12 '16 18:07 fazo96

I have an AUR package written for my fork, and I may as well change it slightly to make a version for the original project as well. I'll look into this ASAP.

ghost avatar Aug 07 '17 13:08 ghost

This would be awesome!

noomly avatar Sep 15 '17 11:09 noomly

since it appears you're still interested, I'll look into getting this done today (:

ghost avatar Sep 15 '17 15:09 ghost

There's now an AUR package: mcpelauncher-git. Although it needs to be updated, I suggest to close this issue.

NyaomiDEV avatar Mar 30 '18 14:03 NyaomiDEV