summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik "Freso" S. Olesen2013-05-07 08:19:59 +0200
committerFrederik "Freso" S. Olesen2013-05-07 08:19:59 +0200
commit34ab869e7d4c0853e0411f46bb6ed3bb6052a05f (patch)
tree8b9695467e09b65c19e78d7f928d5bcff68437b7
parentfcf24f3729bee7b8f051594955f4362bed86ba6f (diff)
downloadaur-34ab869e7d4c0853e0411f46bb6ed3bb6052a05f.tar.gz
mcpatcher: Split build() into prepare() and package().
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 465f6cb533b..ca007784edf 100644
--- a/PKGBUILD
+++ b/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"