mirror of
https://github.com/archlinux/aur.git
synced 2026-03-05 05:12:16 +01:00
mcpatcher: Split build() into prepare() and package().
This commit is contained in:
parent
fcf24f3729
commit
34ab869e7d
1 changed files with 5 additions and 1 deletions
6
PKGBUILD
6
PKGBUILD
|
|
@ -19,11 +19,15 @@ md5sums=('b940f56484cd65f665ee95431f4a3761'
|
|||
'38358254be76dc84676509f43be44938'
|
||||
'87f031f8f0fceb0feb369c6185e07fbf')
|
||||
|
||||
build() {
|
||||
prepare() {
|
||||
cd "$srcdir"
|
||||
|
||||
# Extract icon
|
||||
bsdcpio --extract --make-directories 'resources/icon.png' < "$pkgname-$pkgver.jar"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"
|
||||
|
||||
install -vDm755 'mcpatcher' "$pkgdir/usr/bin/mcpatcher"
|
||||
install -vDm644 'resources/icon.png' "$pkgdir/usr/share/pixmaps/mcpatcher.png"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue