SHARE
TWEET

PKGBUILD

a guest Oct 25th, 2017 2,643 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Shoghi Cervantes <shoghi@mojang.com>
  2. # Maintainer: Thomas Guimbretiere <profmobius@mojang.com>
  3. pkgname=minecraft-launcher
  4. pkgver=2.0.1005
  5. pkgrel=2
  6. pkgdesc="Official Minecraft Launcher"
  7. arch=('x86_64')
  8. url="https://mojang.com/"
  9. license=('All rights reserved')
  10. depends=('java-runtime=8' 'icu57' 'xorg-xrandr')
  11. source=(
  12. https://launcher.mojang.com/mc-staging/download/Minecraft_staging.tar.gz
  13. minecraft-launcher.desktop
  14. minecraft-launcher.svg
  15. )
  16. sha256sums=(
  17. 'bc90bf66f12dbdfb19ae99ad5f9fb16e8bdce204d8cefcf4e17b3bb5a4b454ff'
  18. 'e1029b0a36cef916c58262e6b41b75defd83327ec41e5b372f9861d663007857'
  19. '35c2bcaeb09fa4b8864e9422fd66bf60847706f8b4400ec4a66ba6436b101f71'
  20. )
  21.  
  22. build() {
  23.  
  24.   cd "$srcdir/$pkgname-$pkgver"
  25.  
  26. }
  27.  
  28. package ()
  29.  
  30. {
  31.  
  32.   cd "$pkgdir"
  33.  
  34.   mkdir -p "opt"
  35.   mkdir -p "usr/bin"
  36.  
  37.   install -Dm644 "$srcdir/minecraft-launcher.svg"    "$pkgdir/usr/share/icons/hicolor/symbolic/apps/minecraft-launcher.svg"
  38.  
  39.    install -Dm644 "$srcdir/minecraft-launcher.desktop"    "$pkgdir/usr/share/applications/minecraft-launcher.desktop"
  40.  
  41.   cp -Rv "$srcdir/$pkgname-$pkgver" "$pkgdir/opt/$pkgname"
  42.   ln -s "/opt/$pkgname/minecraft-launcher.sh" "$pkgdir/usr/bin/minecraft-launcher"
  43.  
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top