makedeb


surgescript-bullseye 0.5.5-1


SurgeScript is a scripting language for games (bullseye version).

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

Commit:


Hash: 38d93eccd71beb570d582b8560e5b83a6c155dc0

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 4249726..d90925a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,18 @@
-pkgbase = surgescript
-	pkgdesc = SurgeScript is a scripting language for games.
-	pkgver = 0.5.5
-	pkgrel = 1
-	url = https://github.com/alemart/surgescript
-	arch = i686
-	arch = x86_64
-	arch = pentium4
-	arch = arm
-	arch = armv6h
-	arch = armv7h
-	arch = aarch64
-	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
-
+generated-by = makedeb
 pkgname = surgescript
-
+pkgbase = surgescript
+pkgdesc = SurgeScript is a scripting language for games.
+pkgrel = 0
+pkgver = 0.5.5
+url = https://github.com/alemart/surgescript
+arch = i386
+arch = amd64
+arch = arm
+arch = armel
+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
+makedepends = cmake
diff --git a/.gitignore b/.gitignore
index 2ecb873..f573813 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
 src
 pkg
-*.tar*
+surgescript*
diff --git a/PKGBUILD b/PKGBUILD
index fb19184..3261fbe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +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=surgescript
 pkgver=0.5.5
-pkgrel=1
+pkgrel=0
 pkgdesc='SurgeScript is a scripting language for games.'
-arch=('i686' 'x86_64' 'pentium4' 'arm' 'armv6h' 'armv7h' 'aarch64')
+arch=('i386' 'amd64' 'arm' 'armel' 'armhf' 'arm64')
 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
+}
+
 build() {
   cd $pkgname-$pkgver
 
-  mkdir build && cd build
+  mkdir -p build && cd build
 
   cmake ..
   make
@@ -22,6 +32,11 @@ build() {
 
 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"
+  install -Dm644 "CHANGES.md" "$pkgdir/usr/share/doc/$pkgname/changelog"
+  gzip "$pkgdir/usr/share/doc/$pkgname/changelog"
 }