summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAinola2018-09-09 16:53:52 -0600
committerAinola2018-09-09 16:53:52 -0600
commitc7b7ec006bd80c629f3ac02dd44b8b2449c25e72 (patch)
treea157f88b57071bc195d99b803cca3d9c5978c1e4
parent47ef5837270b76f3e3345d3a477ec31e9c4fcd6c (diff)
downloadaur-c7b7ec006bd80c629f3ac02dd44b8b2449c25e72.tar.gz
PKGBUILD cleanups
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD44
-rw-r--r--creeper-world.desktop6
3 files changed, 25 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cf184edec3e..af1872f5762 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,19 @@
# Generated by mksrcinfo v8
-# Thu May 26 00:02:02 UTC 2016
+# Sun Sep 9 22:53:42 UTC 2018
pkgbase = creeper-world
- pkgdesc = Imagine an enemy that is everywhere and moves like a giant, organic mass across the map.
+ pkgdesc = Imagine an enemy that is everywhere and moves like a giant, organic mass.
pkgver = 0632
- pkgrel = 1
+ pkgrel = 2
url = http://knucklecracker.com/creeperworld/cw.php
arch = any
license = custom
makedepends = unzip
+ makedepends = gendesk
depends = adobe-air-sdk
noextract = CreeperWorld-0632.exe
source = http://knucklecracker.com/creeperworld/dd_webb/CreeperWorld-0632.exe
- source = creeper-world.desktop
source = creeper-world.sh
sha256sums = 6ddfcaa307e36d8761049177de1dbd6c95acc7536c4ff9b2412687e3367e6afc
- sha256sums = ec5f8b5de88ad3ad1291c8cbea7d2e91e3d3daca0209fc4f5e8fd283fab0a74d
sha256sums = 809a86452f621dfcb73f1b3b6ef0c2b482315d6f822e14c20ffd720199fc495e
pkgname = creeper-world
diff --git a/PKGBUILD b/PKGBUILD
index 2cd1d691ee9..badca9b7e49 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,36 +3,34 @@
pkgname=creeper-world
pkgver=0632
-pkgrel=1
-pkgdesc="Imagine an enemy that is everywhere and moves like a giant, organic mass across the map."
+pkgrel=2
+pkgdesc="Imagine an enemy that is everywhere and moves like a giant, organic mass."
arch=('any')
url="http://knucklecracker.com/creeperworld/cw.php"
license=('custom')
depends=('adobe-air-sdk')
-makedepends=('unzip')
-source=(http://knucklecracker.com/creeperworld/dd_webb/CreeperWorld-${pkgver}.exe
- creeper-world.desktop
- creeper-world.sh)
-noextract=(CreeperWorld-${pkgver}.exe)
+makedepends=('unzip' 'gendesk')
+source=("http://knucklecracker.com/creeperworld/dd_webb/CreeperWorld-${pkgver}.exe"
+ "creeper-world.sh")
+noextract=("CreeperWorld-${pkgver}.exe")
sha256sums=('6ddfcaa307e36d8761049177de1dbd6c95acc7536c4ff9b2412687e3367e6afc'
- 'ec5f8b5de88ad3ad1291c8cbea7d2e91e3d3daca0209fc4f5e8fd283fab0a74d'
'809a86452f621dfcb73f1b3b6ef0c2b482315d6f822e14c20ffd720199fc495e')
-package() {
- cd "$srcdir"
- unzip CreeperWorld-${pkgver}.exe
- unzip CreeperWorld-${pkgver}.air
-
- mkdir -p "$pkgdir"/usr/share/{"$pkgname",applications}
- mkdir -p "$pkgdir"/usr/bin
+prepare() {
+ gendesk -n ../PKGBUILD
+ unzip -o "CreeperWorld-${pkgver}.exe"
+ unzip -o "CreeperWorld-${pkgver}.air"
+}
- cp -r icons Main.swf META-INF mimetype "$pkgdir/usr/share/$pkgname/"
- for size in 16 32 48 64 128; do
- mkdir -p "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/"
- ln -s "/usr/share/$pkgname/icons/cw$size.png" \
- "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/creeper-world.png"
- done
+package() {
+ install -Dm644 {Main.swf,mimetype} -t "$pkgdir/usr/share/$pkgname/"
+ install -Dm644 META-INF/AIR/{application.xml,hash} -t "$pkgdir/usr/share/$pkgname/META-INF/AIR/"
+ install -Dm644 META-INF/signatures.xml -t "$pkgdir/usr/share/$pkgname/META-INF/"
+ for size in 16 32 48 64 128; do
+ install -Dm644 "icons/cw$size.png" \
+ "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/$pkgname.png"
+ done
- install -Dm644 "$pkgname".desktop "${pkgdir}/usr/share/applications/"
- install -Dm755 "$pkgname".sh "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$pkgname.desktop" -t "$pkgdir/usr/share/applications/"
+ install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}
diff --git a/creeper-world.desktop b/creeper-world.desktop
deleted file mode 100644
index b84a1cbc258..00000000000
--- a/creeper-world.desktop
+++ /dev/null
@@ -1,6 +0,0 @@
-[Desktop Entry]
-Exec=creeper-world
-Icon=creeper-world
-Type=Application
-Name=Creeper World
-Categories=Game;AudioVideo