makedeb


opensurge 0.6.1.2-0


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.

Commit:


Hash: b368890f5693a716f4adbd1312cf0a2251cdc080

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 94865fd..b13d4bb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,24 @@
-pkgbase = opensurge
-	pkgdesc = Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system.
-	pkgver = 0.5.2.1
-	pkgrel = 1
-	url = https://github.com/alemart/opensurge
-	arch = i686
-	arch = x86_64
-	arch = pentium4
-	arch = arm
-	arch = armv6h
-	arch = armv7h
-	arch = aarch64
-	license = GPL3
-	makedepends = cmake
-	depends = allegro
-	depends = surgescript
-	source = opensurge-0.5.2.1.tar.gz::https://github.com/alemart/opensurge/archive/v0.5.2.1.tar.gz
-	sha256sums = 27764a82d97b54026c90044fbc31ea4a61f7836568020b869e63376322a155af
-
+generated-by = makedeb
 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
+url = https://github.com/alemart/opensurge
+arch = i386
+arch = amd64
+arch = arm
+arch = armel
+arch = armhf
+arch = arm64
+depends = liballegro5.2
+depends = surgescript
+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 = cmake
+makedepends = liballegro5-dev
+makedepends = surgescript
diff --git a/.gitignore b/.gitignore
index 2ecb873..f224783 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
-src
-pkg
-*.tar*
+src/
+pkg/
+opensurge*
diff --git a/PKGBUILD b/PKGBUILD
index 6aa6cf2..84c16d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,30 @@
-# Maintainer: José Rebelo <joserebelo at outlook dot com>
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: José Rebelo (AUR) <joserebelo at outlook dot com>
 
 pkgname=opensurge
 pkgver=0.5.2.1
-pkgrel=1
+pkgrel=0
 pkgdesc='Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system.'
-arch=('i686' 'x86_64' 'pentium4' 'arm' 'armv6h' 'armv7h' 'aarch64')
+arch=('i386' 'amd64' 'arm' 'armel' 'armhf' 'arm64')
 url="https://github.com/alemart/opensurge"
 license=('GPL3')
-depends=('allegro' 'surgescript')
-makedepends=('cmake')
+depends=('liballegro5.2' 'surgescript')
+makedepends=('cmake' 'liballegro5-dev' 'surgescript')
 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
+}
+
 build() {
   cd $pkgname-$pkgver
 
   mkdir -p build && cd build
 
-  cmake -DCMAKE_INSTALL_PREFIX=/usr -DGAME_BINDIR=/usr/bin ..
+  cmake -DCMAKE_INSTALL_PREFIX=/usr -DGAME_BINDIR=/usr/games ..
   make
 }
 
@@ -25,4 +32,10 @@ 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"
+  mv "$pkgdir/usr/share/games/$pkgname/CHANGES.md" "$pkgdir/usr/share/doc/$pkgname/changelog"
+  gzip "$pkgdir/usr/share/doc/$pkgname/changelog"
 }