makedeb


principia-git 1709751673-1


Physics-based sandbox building game.

Click here to go back to the commit logs for principia-git.

Commit:


Hash: ef1ef9941cce76dcf73002f0d72b76dabb0b12d9

Message: Buildscript updates, switch to CMake

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 34f4533..292bcf2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,30 +1,27 @@
-generated-by = makedeb-makepkg
-
 pkgbase = principia-git
 	pkgdesc = Physics-based sandbox building game.
-	pkgver = 1.5.2.r1.b41feea
-	pkgrel = 2
+	pkgver = 1.5.2.r1.e03d1e0
+	pkgrel = 3
 	url = https://github.com/Bithack/principia/
 	arch = amd64
 	arch = i686
 	license = bsd-3
 	makedepends = libsdl2-dev
-	makedepends = libsdl2-gfx-dev
 	makedepends = libsdl2-image-dev
 	makedepends = libsdl2-mixer-dev
 	makedepends = libsdl2-ttf-dev
-	makedepends = libgtk2.0-dev
+	makedepends = libgtk-3-dev
 	makedepends = libcurl4-openssl-dev
 	makedepends = libpng-dev
 	makedepends = libjpeg-dev
 	makedepends = libfreetype6-dev
-	makedepends = automake
+	makedepends = cmake
+	makedepends = ninja-build
 	depends = libsdl2-2.0-0
-	depends = libsdl2-gfx-1.0-0
 	depends = libsdl2-image-2.0-0
 	depends = libsdl2-mixer-2.0-0
 	depends = libsdl2-ttf-2.0-0
-	depends = libgtk2.0-0
+	depends = libgtk-3-0
 	depends = libcurl3-gnutls
 	depends = libpng16-16
 	depends = libjpeg62-turbo
diff --git a/PKGBUILD b/PKGBUILD
index 2a16734..b742e8c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,18 @@
 # Maintainer: ROllerozxa <rollerozxa@voxelmanip.se>
 pkgname=principia-git
-pkgver=1.5.2.r1.b41feea
-pkgrel=2
+pkgver=1.5.2.r1.e03d1e0
+pkgrel=3
 pkgdesc="Physics-based sandbox building game."
 url='https://github.com/Bithack/principia/'
 arch=('amd64' 'i686')
 license=('bsd-3')
 depends=(
-	'libsdl2-2.0-0' 'libsdl2-gfx-1.0-0' 'libsdl2-image-2.0-0' 'libsdl2-mixer-2.0-0' 'libsdl2-ttf-2.0-0'
-	'libgtk2.0-0' 'libcurl3-gnutls' 'libpng16-16' 'libjpeg62-turbo' 'libfreetype6')
+		'libsdl2-2.0-0' 'libsdl2-image-2.0-0' 'libsdl2-mixer-2.0-0' 'libsdl2-ttf-2.0-0'
+		'libgtk-3-0' 'libcurl3-gnutls' 'libpng16-16' 'libjpeg62-turbo' 'libfreetype6')
 makedepends=(
-	'libsdl2-dev' 'libsdl2-gfx-dev' 'libsdl2-image-dev' 'libsdl2-mixer-dev' 'libsdl2-ttf-dev'
-	'libgtk2.0-dev' 'libcurl4-openssl-dev' 'libpng-dev' 'libjpeg-dev' 'libfreetype6-dev'
-	'automake' 'libglew-dev')
+		'libsdl2-dev' 'libsdl2-image-dev' 'libsdl2-mixer-dev' 'libsdl2-ttf-dev'
+		'libgtk-3-dev' 'libcurl4-openssl-dev' 'libpng-dev' 'libjpeg-dev' 'libfreetype6-dev'
+		'cmake' 'ninja-build')
 source=('git+https://github.com/Bithack/principia')
 sha256sums=(SKIP)
 options=()
@@ -23,23 +23,14 @@ pkgver() {
 }
 
 build() {
-	cd principia/build-linux
-	./autogen.sh
-	./configure
-	./go --clean --release --silent
+	cd principia
+	mkdir -p build
+	cd build
+	cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=/usr
+	ninja
 }
 
 package() {
-	cd principia/build-linux
-	install -Dm755 "principia" "${pkgdir}/opt/principia/principia"
-	install -d "${pkgdir}/usr/bin/"
-	ln -s /opt/principia/principia "${pkgdir}/usr/bin/principia"
-	
-	install -Dm644 "principia.desktop" "${pkgdir}/usr/share/applications/principia.desktop"
-	install -Dm644 "principia-url-handler.desktop" "${pkgdir}/usr/share/applications/principia-url-handler.desktop"
-	
-	install -Dm644 "principia.png" "${pkgdir}/usr/share/pixmaps/principia.png"
-
-	install -d "${pkgdir}/opt"
-	cp -r ../data-{shared,pc} "${pkgdir}/opt/principia/"
+	cd principia/build
+	DESTDIR="${pkgdir}" ninja install
 }