summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff6400978ee365557eb880d598cd195b5dce9a3a (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
# Maintainer: Marcin Nowak <marcin.j.nowak+aur AT gmail DOT com>

pkgname=fractalus
pkgver=1.0.0
pkgrel=2
pkgdesc='A fan remake of Rescue on Fractalus, a classic game developed by Lucasfilm Games originally released on Atari, Commodore 64 and other platforms in 1984.'
url=https://www.lsdwa.com/projects/fractalus/
source=(
    "http://downloads.lsdwa.com/projects/fractalus/fractalus-$pkgver-linux.tgz"
    "${pkgname}.desktop"
    "fractalus"
    )
arch=('x86_64')
sha256sums=('1581b6102f940bd07efbb4b1f829398cae59fe60862098f73664fb0e350e8a03'
            '2b6ed647553bc49888b5ad87e37e461b6cdae71c5b43ee396b52d41466a9c77d'
            '0cd092338bff018f91ebaea19cf032ede20f3c03971b713dfbe1470243d4f668')
license=("unknown")

prepare() {
    mkdir ${srcdir}/Fractalus-Game
    cd ${srcdir}/Fractalus-Game
    bsdtar -xf "${srcdir}/fractalus-1.0.0-linux.tgz"
}

package(){
    cd ${srcdir}/Fractalus-Game
    install -dm755 ${pkgdir}/opt
    install -dm755 ${pkgdir}/usr/bin
    mkdir -p ${pkgdir}/opt/${pkgname}
    mkdir -p ${pkgdir}/usr/bin
    cp -R * ${pkgdir}/opt/${pkgname}
    chmod 775 ${pkgdir}/opt/${pkgname}
    chown :games ${pkgdir}/opt/${pkgname}
    install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
    install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/"
    msg2 "\e[1;32mYou'll have to be in the 'games' group to be able to play this game."
}