summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d33f56d81b7a24415de0c49fe20bb51502d6e2e (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
# Maintainer: Nixuge

pkgname=minecraft-world-downloader-bin
pkgver=1.17.5
pkgrel=1
pkgdesc='Download Minecraft worlds, extend servers render distance. 1.12.2 - 1.20.1'
url=https://github.com/mircokroon/minecraft-world-downloader
arch=(any)
license=(GPL3)
depends=('java-runtime>=17')
provides=('minecraft-world-downloader')
conflicts=('minecraft-world-downloader')
options=(!strip)
# Note: jar gets extracted, if anyone knows of a way for it NOT to do that send a comment
source=("https://github.com/mircokroon/minecraft-world-downloader/releases/download/v${pkgver}/world-downloader.jar" "https://raw.githubusercontent.com/mircokroon/minecraft-world-downloader/master/src/main/resources/ui/icon/icon.png" "minecraft-world-downloader.desktop" "minecraft-world-downloader")
sha256sums=('4952d0156ffc2ffa0ace249a5e3f71621c890d0067d14d99a5a1dd0004288d0e' '04c7491d1093ecbb6bea7c42c2b682ae973a7d67cc1029e45e2f9a043220ee91' '36f5fac4ae8021b4f22e3aea1e2459a2973fb04bdb710bfd0a8040722050c2b3' '5e5cd6ca7ce427101e7008c3e327cb955c02a3195f7e5c78dae2c75f18028ef8')


package() {
	# Create folders
	install -dm755 "${pkgdir}/usr/bin/"
    install -dm755 "${pkgdir}/usr/share/java/minecraft-world-downloader"
    install -dm755 "${pkgdir}/usr/share/icons"
    install -dm755 "${pkgdir}/usr/share/applications"

	# move the jar
	install -Dm755 \
		"${srcdir}/world-downloader.jar" \
		"${pkgdir}/usr/share/java/minecraft-world-downloader/"
    
    # move the desktop file
	install -Dm755 \
		"${srcdir}/minecraft-world-downloader.desktop" \
		"${pkgdir}/usr/share/applications/"

    # move the icon, not sure if i should move it to a subfolder as it's a weird res (352x350)
	install -Dm755 \
		"${srcdir}/icon.png" \
		"${pkgdir}/usr/share/icons/minecraft-world-downloader.png"
    
    # move the launcher file
    install -Dm755 \
		"${srcdir}/minecraft-world-downloader" \
		"${pkgdir}/usr/bin/"
}