summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Bezies2021-03-18 15:26:50 +0100
committerFrederic Bezies2021-03-18 15:26:50 +0100
commit638105377ac0384af9d488c2d7f6992dcd67eebc (patch)
tree27769d264dc95e1a246dd1d1ea3eec70bcdd13ed
parent5b2f4db5647a377ca978158db5ade1a9073c6cf8 (diff)
downloadaur-638105377ac0384af9d488c2d7f6992dcd67eebc.tar.gz
updated PKGBUILD
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD18
-rwxr-xr-xfractalus2
3 files changed, 16 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 97d0897a6c0..13c09af944a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = fractalus
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.
pkgver = 1.0.0
- pkgrel = 1
+ pkgrel = 2
url = https://www.lsdwa.com/projects/fractalus/
arch = x86_64
license = unknown
diff --git a/PKGBUILD b/PKGBUILD
index 77358a11aaa..ff6400978ee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=fractalus
pkgver=1.0.0
-pkgrel=1
+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=(
@@ -16,12 +16,22 @@ sha256sums=('1581b6102f940bd07efbb4b1f829398cae59fe60862098f73664fb0e350e8a03'
'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 755 ${pkgdir}/opt/${pkgname}
- install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
- install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/"
+ 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."
}
diff --git a/fractalus b/fractalus
index 31607daae7e..d91e995bc4b 100755
--- a/fractalus
+++ b/fractalus
@@ -1,3 +1,3 @@
#!/bin/bash
-cd /opt/fractalus/ && ./Fractalus.x86_64
+cd /opt/fractalus/ && ./Fractalus