blob: 9e8bff9751da47d75c303c0206ab71f08b89a3e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: ROllerozxa <rollerozxa@voxelmanip.se>
pkgname=principia-git
pkgver=r399.7085fbab
pkgrel=1
pkgdesc="Physics-based sandbox building game."
url='https://github.com/Bithack/principia/'
arch=('x86_64' 'i686')
license=('bsd-3')
depends=('gtk3' 'glew' 'curl' 'libpng' 'libjpeg' 'freetype2' 'sdl2')
makedepends=('git' 'cmake' 'ninja')
provides=("principia")
conflicts=("principia")
source=('git+https://github.com/Bithack/principia')
sha256sums=(SKIP)
options=(!lto)
pkgver() {
cd principia
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd principia/
mkdir -p build
cd build
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=/usr
ninja
}
package() {
cd principia/build/
DESTDIR="${pkgdir}" ninja install
}
|