mcpatcher: Extract and use icon from .jar.

This commit is contained in:
Frederik "Freso" S. Olesen 2012-09-28 12:12:40 +02:00
parent 570dfaad78
commit 7b8d9737a4
4 changed files with 16 additions and 4 deletions

View file

@ -1,11 +1,12 @@
pkgbase = mcpatcher
pkgdesc = Minecraft patcher to fix textures with higher than default resolution
pkgver = 2.4.3
pkgrel = 1
pkgrel = 2
url = https://github.com/pclewis/mcpatcher
changelog = ChangeLog
arch = any
license = Public Domain
makedepends = unzip
depends = java-runtime
optdepends = minecraft: the game itself
noextract = mcpatcher-2.4.3.jar
@ -13,7 +14,7 @@ pkgbase = mcpatcher
source = mcpatcher.desktop
source = https://github.com/downloads/pclewis/mcpatcher/mcpatcher-2.4.3.jar
md5sums = 38358254be76dc84676509f43be44938
md5sums = d1655678a7efff9ac2a35553e3e82518
md5sums = 87f031f8f0fceb0feb369c6185e07fbf
md5sums = f321c07405d330f2d605bbbbb6f523f3
pkgname = mcpatcher

View file

@ -1,3 +1,8 @@
2012-09-28 Frederik "Freso" S. Olesen <archlinux@freso.dk>
* 2.4.3-2 :
Added icon to the desktop menu entry.
2012-09-28 Frederik "Freso" S. Olesen <archlinux@freso.dk>
* 2.4.3-1 :

View file

@ -3,26 +3,31 @@
pkgname=mcpatcher
pkgver='2.4.3'
pkgrel=1
pkgrel=2
pkgdesc="Minecraft patcher to fix textures with higher than default resolution"
arch=('any')
license=('Public Domain')
url="https://github.com/pclewis/mcpatcher"
depends=('java-runtime')
optdepends=('minecraft: the game itself')
makedepends=('unzip')
noextract=("$pkgname-$pkgver.jar")
changelog=ChangeLog
source=(mcpatcher
mcpatcher.desktop
https://github.com/downloads/pclewis/mcpatcher/$pkgname-$pkgver.jar)
md5sums=('38358254be76dc84676509f43be44938'
'd1655678a7efff9ac2a35553e3e82518'
'87f031f8f0fceb0feb369c6185e07fbf'
'f321c07405d330f2d605bbbbb6f523f3')
build() {
cd "$srcdir"
# Extract icon
unzip "$pkgname-$pkgver.jar" 'resources/icon.png'
install -vDm755 "mcpatcher" "$pkgdir/usr/bin/mcpatcher"
install -vDm644 "resources/icon.png" "$pkgdir/usr/share/pixmaps/mcpatcher.png"
install -vDm644 "mcpatcher.desktop" "$pkgdir/usr/share/applications/mcpatcher.desktop"
install -vDm644 "$pkgname-$pkgver.jar" "$pkgdir/usr/share/mcpatcher/mcpatcher.jar"
}

View file

@ -5,6 +5,7 @@ Name=MCPatcher
Comment=Minecraft patcher for HD textures and more.
TryExec=mcpatcher
Exec=java -Xmx512m -jar /usr/share/mcpatcher/mcpatcher.jar
Icon=/usr/share/pixmaps/mcpatcher.png
Terminal=false
Categories=Game;
Keywords=minecraft;