makedeb


principia-git 1709751673-1


Physics-based sandbox building game.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for principia-git.

# Maintainer: ROllerozxa <rollerozxa@voxelmanip.se>
pkgname=principia-git
pkgver=1709751673
pkgrel=1
pkgdesc="Physics-based sandbox building game."
url='https://github.com/Bithack/principia/'
arch=('amd64' 'i686')
license=('bsd-3')
depends=('libsdl2-2.0-0' 'libgtk-3-0' 'libcurl4' 'libpng16-16' 'libjpeg62-turbo' 'libfreetype6' 'libglew2.2')
makedepends=('libsdl2-dev' 'libgtk-3-dev' 'libcurl4-openssl-dev' 'libpng-dev' 'libjpeg-dev' 'libfreetype-dev' 'libglew-dev'
			'cmake' 'ninja-build' 'git')
source=('git+https://github.com/Bithack/principia')
sha256sums=(SKIP)
options=()

pkgver() {
	cd principia
	git log -1 --format=%ct
}

build() {
	cd principia
	mkdir -p build; cd build
	cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=/usr
	ninja
}

package() {
	cd principia/build
	DESTDIR="${pkgdir}" ninja install
}