summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a41cae2657854c98d77e131690d1ff7dc259e2a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Ainola
# Contributor: Felix Berkenkamp

pkgname=creeper-world
pkgver=0632
pkgrel=3
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' 'gendesk')
source=("https://knucklecracker.com/creeperworld/dd_webb/CreeperWorld-$pkgver.exe"
        "creeper-world.sh")
noextract=("CreeperWorld-${pkgver}.exe")
sha256sums=('6ddfcaa307e36d8761049177de1dbd6c95acc7536c4ff9b2412687e3367e6afc'
            '809a86452f621dfcb73f1b3b6ef0c2b482315d6f822e14c20ffd720199fc495e')

prepare() {
    gendesk -n --pkgname="$pkgname" \
        --name="Creeper World" \
        --pkgdesc="$pkgdesc" \
        --exec=/usr/bin/creeper-world \
        --categories='Game'
    unzip -o "CreeperWorld-${pkgver}.exe"
    unzip -o "CreeperWorld-${pkgver}.air"
}

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" -t "$pkgdir/usr/share/applications/"
    install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}