summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b482d5b39f7b53fd94a4ca1dd0d7f6e0b9aeacd (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
pkgname='enchantmentcracker-bin'
pkgver='1.5'
pkgrel=1
epoch=
pkgdesc='Cracking the XP seed in Minecraft and choosing your enchantments'
arch=('any')
url='https://github.com/Earthcomputer/EnchantmentCracker'
license=('MIT')
depends=('java-runtime=8')
makedepends=('unzip')
source=("https://github.com/Earthcomputer/EnchantmentCracker/releases/download/v$pkgver/enchcracker-${pkgver//_/-}.zip"
	"https://raw.githubusercontent.com/Earthcomputer/EnchantmentCracker/v$pkgver/LICENSE.txt"
	"enchcracker")
noextract=("enchcracker-${pkgver//_/-}.zip")

md5sums=('448eab35721fdec938a1969f5d0f614a'
         '47d894a54821060b37984df5ee85c467'
         'f0322a90cebb3bdb20e65c1fdca5b33c')

prepare() {
	cd $srcdir
	unzip -o "enchcracker-${pkgver//_/-}.zip"
}

package() {
        cd "enchcracker-${pkgver//_/-}"
	mkdir -p "$pkgdir/usr/share/java/"
	mkdir -p "$pkgdir/usr/bin/"
	mkdir -p "$pkgdir/usr/share/licenses/enchantmentcracker/"
	install -Dm755 "$srcdir/enchcracker" "$pkgdir/usr/bin/enchcracker"
	install -Dm644 "./lib/enchcracker-${pkgver//_/-}.jar" "$pkgdir/usr/share/java/enchcracker.jar"
	install -Dm644 "$srcdir/LICENSE.txt" "$pkgdir/usr/share/licenses/enchantmentcracker/LICENSE"
}