summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fafe555e165c38f1418fcba5c9ba71cd124e99a2 (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
44
45
46
47
# Maintainer: Stefan Eekhof <stefaneekhof@gmail.com>
pkgname=mtk
pkgver=1.0.0

pkgrel=14
pkgdesc="MTK CLI - Command Line Interface for the Cyan Minecraft Toolkit
(NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG)"
arch=( 'any' )
url=""
license=('LGPL')
groups=()
depends=( 'java-environment' )
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://aerialworks.ddns.net/ASF/Cyan.git")
noextract=()
md5sums=('SKIP')

build() {
    cd Cyan/MtkCLI
    chmod +x ../gradlew
    ../gradlew -c ../settings.lite.gradle installation
}

package() {
    mkdir "$pkgdir/usr/lib/mtk-libs/" -p
    cd Cyan/build/MTK-CLI/Installations
    
    rm *-portable
    rm *.bat
    
    mkdir -p "$pkgdir/usr/bin"
    mv mtk "$pkgdir/usr/bin"
    mv rift "$pkgdir/usr/bin"
    mv pseudocode "$pkgdir/usr/bin"
    chmod +x "$pkgdir/usr/bin/mtk"
    chmod +x "$pkgdir/usr/bin/rift"
    chmod +x "$pkgdir/usr/bin/pseudocode"
    cp -rf . "$pkgdir/usr/lib/mtk-libs"
}