blob: fea1cc9e58c4f705aa5d59d307e13ffe19004ac6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Petr Mrázek <petr@mojang.com>
pkgname=minecraft-launcher-beta
pkgver=2.2.1767
pkgrel=1
pkgdesc="Official Minecraft Launcher Beta"
arch=('x86_64')
url="https://mojang.com/"
license=('All rights reserved')
depends=('java-runtime' 'xorg-xrandr' 'libxss' 'libx11' 'libxcb' 'alsa-lib' 'gtk2' 'gtk3' 'libxtst' 'nss')
optdepends=('flite: narrator support')
conflicts=('minecraft-launcher')
source=(
https://launcher.mojang.com/download/linux/x86_64/minecraft-launcher_${pkgver}.tar.gz
minecraft-launcher.desktop
https://launcher.mojang.com/download/minecraft-launcher.svg
)
sha256sums=(
'497d545c8ddc9338bec063e908268aa89804af7ba825a3c74d470c432338f4d6'
'677e2442a1ae83cc58d8d403666e508129e97dbed37fdfafdceac6101dc0dee7'
'35c2bcaeb09fa4b8864e9422fd66bf60847706f8b4400ec4a66ba6436b101f71'
)
build() {
cd "$srcdir/minecraft-launcher"
}
package () {
cd "$pkgdir"
mkdir -p "opt"
mkdir -p "usr/bin"
install -Dm644 "$srcdir/minecraft-launcher.svg" "$pkgdir/usr/share/icons/hicolor/symbolic/apps/minecraft-launcher.svg"
install -Dm644 "$srcdir/minecraft-launcher.desktop" "$pkgdir/usr/share/applications/minecraft-launcher.desktop"
cp -Rv "$srcdir/minecraft-launcher" "$pkgdir/opt/minecraft-launcher"
ln -s "/opt/minecraft-launcher/minecraft-launcher" "$pkgdir/usr/bin/minecraft-launcher"
}
|