summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD36
2 files changed, 30 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8ea025ddbe4..40bbafdc740 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,21 @@
pkgbase = kazan-git
pkgdesc = Software-rendering Vulkan implementation
- pkgver = 20170908
- pkgrel = 2
+ pkgver = 20190201
+ pkgrel = 1
url = http://kazan-3d.org
- arch = i686
arch = x86_64
license = MIT
makedepends = git
- makedepends = cmake
- makedepends = clang>=4
makedepends = sdl2
+ makedepends = cargo
+ makedepends = python
+ makedepends = clang
+ makedepends = cmake
+ makedepends = ninja
optdepends = sdl2: for demo program
provides = kazan
conflicts = kazan
- source = git+git://github.com/kazan-3d/kazan.git
+ source = git+https://salsa.debian.org/Kazan-team/kazan.git
md5sums = SKIP
pkgname = kazan-git
diff --git a/PKGBUILD b/PKGBUILD
index 7dfd7247a19..4c36d949966 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,42 @@
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=kazan-git
-pkgver=20170908
-pkgrel=2
+pkgver=20190201
+pkgrel=1
pkgdesc="Software-rendering Vulkan implementation"
-arch=('i686' 'x86_64')
+arch=('x86_64')
url="http://kazan-3d.org"
license=('MIT')
-makedepends=('git' 'cmake' 'clang>=4' 'sdl2')
+makedepends=('git' 'sdl2' 'cargo' 'python' 'clang' 'cmake' 'ninja')
optdepends=('sdl2: for demo program')
provides=('kazan')
conflicts=('kazan')
-source=('git+git://github.com/kazan-3d/kazan.git')
+source=('git+https://salsa.debian.org/Kazan-team/kazan.git')
md5sums=('SKIP')
-build() {
+prepare() {
cd "${srcdir}/kazan"
- [[ -d build ]] && rm -r build
- mkdir build && cd build
+ git submodule update --init --recursive
+}
+
+build() {
+ cd "${srcdir}/kazan"
- export CC=clang
- export CXX=clang++
- cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
- make
+ cargo build --release
}
package() {
- cd "${srcdir}/kazan/build"
+ cd "${srcdir}/kazan/target/release"
+
+ install -Dm755 libkazan_driver.so "${pkgdir}/usr/lib/libkazan_driver.so"
+ mkdir -p "${pkgdir}"/usr/share/vulkan/icd.d/
+ sed 's/"library_path": ".*"/"library_path": "libkazan_driver.so"/' $(find . -name kazan_driver.json) > "${pkgdir}"/usr/share/vulkan/icd.d/kazan_icd.json
+}
+
+check() {
+ cd "${srcdir}/kazan"
- make install DESTDIR=${pkgdir}
+ cargo test
}
# vim:set ts=2 sw=2 et: