makedeb


opensurge-bullseye 0.5.2.1-0


Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system (bullseye version).

Click here to go back to the commit logs for opensurge-bullseye.

Commit:


Hash: a49a6429147de2756d8cc9cc39b2d47fe5a04d4e

Message: bullseye version

Diff


diff --git a/.SRCINFO b/.SRCINFO
index b13d4bb..d31541d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 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.
+pkgname = opensurge-bullseye
+pkgbase = opensurge-bullseye
+pkgdesc = Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system (bullseye version).
 pkgrel = 0
 pkgver = 0.5.2.1
 url = https://github.com/alemart/opensurge
@@ -11,14 +11,16 @@ arch = arm
 arch = armel
 arch = armhf
 arch = arm64
+conflicts = opensurge
 depends = liballegro5.2
-depends = surgescript
+depends = surgescript-bullseye
 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
+makedepends = surgescript-bullseye
+provides = opensurge
+source = opensurge-bullseye-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
+makedepends = surgescript-bullseye
diff --git a/PKGBUILD b/PKGBUILD
index 84c16d3..5b215fc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,29 @@
 # Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
 # Contributor: José Rebelo (AUR) <joserebelo at outlook dot com>
 
-pkgname=opensurge
+_name=opensurge
+pkgname=opensurge-bullseye
 pkgver=0.5.2.1
 pkgrel=0
-pkgdesc='Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system.'
+pkgdesc='Open Surge is a fun 2D retro platformer inspired by Sonic games, and a game creation system (bullseye version).'
 arch=('i386' 'amd64' 'arm' 'armel' 'armhf' 'arm64')
 url="https://github.com/alemart/opensurge"
 license=('GPL3')
-depends=('liballegro5.2' 'surgescript')
-makedepends=('cmake' 'liballegro5-dev' 'surgescript')
+provides=('opensurge')
+conflicts=('opensurge')
+depends=('liballegro5.2' 'surgescript-bullseye')
+makedepends=('cmake' 'liballegro5-dev' 'surgescript-bullseye')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/alemart/opensurge/archive/v$pkgver.tar.gz")
 sha256sums=('27764a82d97b54026c90044fbc31ea4a61f7836568020b869e63376322a155af')
 
 prepare() {
-  cd $pkgname-$pkgver
+  cd $_name-$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
+  cd $_name-$pkgver
 
   mkdir -p build && cd build
 
@@ -29,13 +32,13 @@ build() {
 }
 
 package() {
-  cd $pkgname-$pkgver/build
+  cd $_name-$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"
+  mv "$pkgdir/usr/share/games/$_name/LICENSE" "$pkgdir/usr/share/doc/$pkgname/license"
+  mv "$pkgdir/usr/share/games/$_name/README.md" "$pkgdir/usr/share/doc/$pkgname/readme"
+  mv "$pkgdir/usr/share/games/$_name/CHANGES.md" "$pkgdir/usr/share/doc/$pkgname/changelog"
   gzip "$pkgdir/usr/share/doc/$pkgname/changelog"
 }