blob: 8dceaeea91a3c4121d63a64dd6c6c1c2d5f20205 (
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=mcpatcher3
_pkgname=mcpatcher
pkgver='3.0.4_02'
pkgrel=1
pkgdesc='Minecraft patcher to fix textures with higher than default resolution. For Minecraft 1.5.x.'
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
mcpatcher3
mcpatcher3.desktop)
md5sums=('ab454b0d93eb9b2ef0fdf9c83e139c10'
'd62667ccd36be3c31d1116e6ad5d70e2'
'c9643983724cce746e24ffd16d0b7611')
prepare() {
cd "$srcdir"
# Extract icon
bsdcpio --extract --make-directories 'resources/icon.png' < "$_pkgname-$pkgver.jar"
}
package() {
cd "$srcdir"
install -vDm755 'mcpatcher3' "$pkgdir/usr/bin/mcpatcher3"
install -vDm644 'resources/icon.png' "$pkgdir/usr/share/pixmaps/mcpatcher3.png"
install -vDm644 'mcpatcher3.desktop' "$pkgdir/usr/share/applications/mcpatcher3.desktop"
install -vDm644 "$_pkgname-$pkgver.jar" "$pkgdir/usr/share/$pkgname/mcpatcher.jar"
}
# vim:set ts=4 sw=4 et:
|