makedeb


surgescript 0.6.1-0


SurgeScript is a scripting language for games.

Click here to go back to the commit logs for surgescript.

Commit:


Hash: 224145f4b080037ea7baee114cb75299237d7a1a

Message: 0.5.6.1

Diff


diff --git a/.SRCINFO b/.SRCINFO
index d90925a..f21e475 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = surgescript
 pkgbase = surgescript
 pkgdesc = SurgeScript is a scripting language for games.
 pkgrel = 0
-pkgver = 0.5.5
+pkgver = 0.5.6.1
 url = https://github.com/alemart/surgescript
 arch = i386
 arch = amd64
@@ -13,6 +13,6 @@ arch = armhf
 arch = arm64
 license = Apache-2.0
 makedepends = cmake
-source = surgescript-0.5.5.tar.gz::https://github.com/alemart/surgescript/archive/v0.5.5.tar.gz
-sha256sums = c9f59131d5cd921a11fb1335fe93bd754f4b1eefa1ed95aaa0343a28437f3f78
+source = surgescript-0.5.6.1.tar.gz::https://github.com/alemart/surgescript/archive/v0.5.6.1.tar.gz
+b2sums = 965715523893781b5c63851d6cd1cc3a4842451807a96b85377a166d4190e5d7cbe83f65b2086b1ed8b2956cf89dd188ddb6135f30b778f1b1d50d9dc9e3028a
 makedepends = cmake
diff --git a/PKGBUILD b/PKGBUILD
index 3261fbe..0507e20 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Contributor: José Rebelo (AUR) <joserebelo at outlook dot com>
 
 pkgname=surgescript
-pkgver=0.5.5
+pkgver=0.5.6.1
 pkgrel=0
 pkgdesc='SurgeScript is a scripting language for games.'
 arch=('i386' 'amd64' 'arm' 'armel' 'armhf' 'arm64')
@@ -10,30 +10,18 @@ url='https://github.com/alemart/surgescript'
 license=('Apache-2.0')
 makedepends=('cmake')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/alemart/surgescript/archive/v$pkgver.tar.gz")
-sha256sums=('c9f59131d5cd921a11fb1335fe93bd754f4b1eefa1ed95aaa0343a28437f3f78')
-
-prepare() {
-  cd $pkgname-$pkgver
-  # remove full path of complilation dir
-  sed -i 's!^# Build the library$!function(drop_compilation_paths TARGET)\nif(NOT MSVC)\ntarget_compile_options(\${TARGET} PUBLIC "-ffile-prefix-map=\${CMAKE_SOURCE_DIR}=.")\nendif()\nendfunction()\n\n# Build the library!' CMakeLists.txt
-  sed -i 's!set_target_properties(surgescript PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${LIB_SOVERSION})!set_target_properties(surgescript PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${LIB_SOVERSION})\ndrop_compilation_paths(surgescript)!' CMakeLists.txt
-  sed -i 's!set_target_properties(surgescript-static PROPERTIES VERSION ${PROJECT_VERSION})!set_target_properties(surgescript-static PROPERTIES VERSION ${PROJECT_VERSION})\ndrop_compilation_paths(surgescript-static)!' CMakeLists.txt
-  sed -i 's!set_target_properties(surgescript.bin PROPERTIES OUTPUT_NAME surgescript)!set_target_properties(surgescript.bin PROPERTIES OUTPUT_NAME surgescript)\ndrop_compilation_paths(surgescript.bin)!' CMakeLists.txt
-}
+b2sums=('965715523893781b5c63851d6cd1cc3a4842451807a96b85377a166d4190e5d7cbe83f65b2086b1ed8b2956cf89dd188ddb6135f30b778f1b1d50d9dc9e3028a')
 
 build() {
   cd $pkgname-$pkgver
-
   mkdir -p build && cd build
-
   cmake ..
-  make
+  make -j $(nproc)
 }
 
 package() {
   cd $pkgname-$pkgver/build
   make DESTDIR="$pkgdir/" install
-
   cd ..
   install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/$pkgname/license"
   install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/readme"