blob: f773d54dd47c3d33949b18f7a8b69fb9736a4eab (
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
|
# Contributor: Constantin Schomburg <me@xconstruct.net>
# Maintainer: Frederik "Freso" S. Olesen <freso.dk@gmail.com>
pkgname=mcpatcher2
_pkgname=mcpatcher
pkgver='2.4.5_04'
pkgrel=2
pkgdesc='Minecraft patcher to fix textures with higher than default resolution. For Minecraft versions 1.4.x and earlier.'
arch=('any')
license=('Public Domain')
url='https://bitbucket.org/prupe/mcpatcher'
depends=('java-runtime')
optdepends=('minecraft: the game itself')
noextract=("$_pkgname-$pkgver.jar")
changelog=ChangeLog
source=(https://bitbucket.org/prupe/mcpatcher/downloads/$_pkgname-$pkgver.jar
mcpatcher2
mcpatcher2.desktop)
md5sums=('c2c4e0327a6074209371953385108615'
'f0f63af475d5d666395b9b41f59c9f5e'
'9007f849ab95ccd7e62134b858b8618e')
prepare() {
cd "$srcdir"
# Extract icon
bsdcpio --extract --make-directories 'resources/icon.png' < "$_pkgname-$pkgver.jar"
}
package() {
cd "$srcdir"
install -vDm755 'mcpatcher2' "$pkgdir/usr/bin/mcpatcher2"
install -vDm644 'resources/icon.png' "$pkgdir/usr/share/pixmaps/mcpatcher2.png"
install -vDm644 'mcpatcher2.desktop' "$pkgdir/usr/share/applications/mcpatcher2.desktop"
install -vDm644 "$_pkgname-$pkgver.jar" "$pkgdir/usr/share/$pkgname/mcpatcher.jar"
}
# vim:set ts=4 sw=4 et:
|