makedeb
Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system.
Click here to go back to the commit logs for opensurge.
Hash: d4af21cd8eec43066a14b5e0fcd00691c00067e0
Message: 0.6.0.3
diff --git a/.SRCINFO b/.SRCINFO
index b13d4bb..4f9d544 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = opensurge
pkgbase = opensurge
pkgdesc = Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system.
pkgrel = 0
-pkgver = 0.5.2.1
+pkgver = 0.6.0.3
url = https://github.com/alemart/opensurge
arch = i386
arch = amd64
@@ -11,14 +11,14 @@ arch = arm
arch = armel
arch = armhf
arch = arm64
-depends = liballegro5.2
-depends = surgescript
+depends = liballegro5.2>=5.2.7
+depends = surgescript>=0.5.6.0
license = GPL3
makedepends = cmake
-makedepends = liballegro5-dev
-makedepends = surgescript
-source = opensurge-0.5.2.1.tar.gz::https://github.com/alemart/opensurge/archive/v0.5.2.1.tar.gz
-sha256sums = 27764a82d97b54026c90044fbc31ea4a61f7836568020b869e63376322a155af
+makedepends = liballegro5-dev>=5.2.7
+makedepends = surgescript>=0.5.6.0
+source = opensurge-0.6.0.3.tar.gz::https://github.com/alemart/opensurge/archive/v0.6.0.3.tar.gz
+b2sums = 94e8cfff1e80c395ce853d44753938156df17e238b69eb4dc0677ecaea23d211d778d029524c9736f6b74a84bf3c4660c3b6c1dc7375a1d8877212bd74bbe5ce
makedepends = cmake
-makedepends = liballegro5-dev
-makedepends = surgescript
+makedepends = liballegro5-dev>=5.2.7
+makedepends = surgescript>=0.5.6.0
diff --git a/PKGBUILD b/PKGBUILD
index 84c16d3..5a6a03c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,37 +2,27 @@
# Contributor: José Rebelo (AUR) <joserebelo at outlook dot com>
pkgname=opensurge
-pkgver=0.5.2.1
+pkgver=0.6.0.3
pkgrel=0
pkgdesc='Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system.'
arch=('i386' 'amd64' 'arm' 'armel' 'armhf' 'arm64')
url="https://github.com/alemart/opensurge"
license=('GPL3')
-depends=('liballegro5.2' 'surgescript')
-makedepends=('cmake' 'liballegro5-dev' 'surgescript')
+depends=('liballegro5.2>=5.2.7' 'surgescript>=0.5.6.0')
+makedepends=('cmake' 'liballegro5-dev>=5.2.7' 'surgescript>=0.5.6.0')
source=("$pkgname-$pkgver.tar.gz::https://github.com/alemart/opensurge/archive/v$pkgver.tar.gz")
-sha256sums=('27764a82d97b54026c90044fbc31ea4a61f7836568020b869e63376322a155af')
-
-prepare() {
- cd $pkgname-$pkgver
- # remove full path of complilation dir
- sed -i 's!^# Target properties$!# rm full path of complilation dir\nIF(NOT MSVC)\nTARGET_COMPILE_OPTIONS(\${GAME_UNIXNAME} PUBLIC "-ffile-prefix-map=${CMAKE_SOURCE_DIR}=.")\nENDIF()\n\n# Target properties!' CMakeLists.txt
-}
+b2sums=('94e8cfff1e80c395ce853d44753938156df17e238b69eb4dc0677ecaea23d211d778d029524c9736f6b74a84bf3c4660c3b6c1dc7375a1d8877212bd74bbe5ce')
build() {
cd $pkgname-$pkgver
-
mkdir -p build && cd build
-
cmake -DCMAKE_INSTALL_PREFIX=/usr -DGAME_BINDIR=/usr/games ..
- make
+ make -j $(nproc)
}
package() {
cd $pkgname-$pkgver/build
-
make DESTDIR="$pkgdir/" install
-
mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
mv "$pkgdir/usr/share/games/$pkgname/LICENSE" "$pkgdir/usr/share/doc/$pkgname/license"
mv "$pkgdir/usr/share/games/$pkgname/README.md" "$pkgdir/usr/share/doc/$pkgname/readme"