summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD15
1 files changed, 6 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 44746a6f38c..806244f4c96 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=mspinball-bin
pkgver=v1
depends=('wine')
makedepends=('unrar')
-pkgrel=1
+pkgrel=2
arch=(x86_64)
pkgdesc="3D Pinball - Space Cadet"
license=("proprietary")
@@ -17,14 +17,11 @@ sha256sums=("3cc5dfd914c2ac41b03f006c7ccbb59d6f9e4c32ecfd1906e718c8e47f130f4a")
prepare() {
unrar e -y Space_Cadet.rar
+ rm $srcdir/Space_Cadet.rar
}
package() {
- _DESTINATION="$pkgdir/usr/share/mspinball"
- mkdir -p $_DESTINATION
- mkdir -p $pkgdir/usr/bin
- cp "$srcdir/../mspinball" $pkgdir/usr/bin/
- rm $srcdir/Space_Cadet.rar
- cp -r $srcdir/* $_DESTINATION
- mkdir -p "$pkgdir/usr/share/applications/"
- cp "$srcdir/../mspinball.desktop" "$pkgdir/usr/share/applications"
+ install -D -m0755 $srcdir/../mspinball $pkgdir/usr/bin/mspinball
+ install -D -m0644 $srcdir/../mspinball.desktop $pkgdir/usr/share/applications/mspinball.desktop
+ mkdir -m755 -p $pkgdir/usr/share/mspinbal
+ cp -r $srcdir $pkgdir/usr/share/mspinball
}