diff options
author | Michel Zou | 2021-03-01 19:56:24 +0100 |
---|---|---|
committer | Michel Zou | 2021-03-01 19:56:24 +0100 |
commit | ed06108e7204d55bc968741469d612374e2cf5e3 (patch) | |
tree | f4d08b997f2be22a0ba0e5c875b5dc6337bed5c4 | |
download | aur-ed06108e7204d55bc968741469d612374e2cf5e3.tar.gz |
r6
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..39812aa98c7d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-raytracinginvulkan + pkgdesc = Implementation of Peter Shirley's Ray Tracing In One Weekend book (mingw-w64) + pkgver = r6 + pkgrel = 1 + url = https://github.com/GPSnoopy/RayTracingInVulkan + arch = any + license = BSD + makedepends = mingw-w64-cmake + makedepends = mingw-w64-stb-git + depends = mingw-w64-vulkan-icd-loader + depends = mingw-w64-glfw + depends = mingw-w64-boost + options = !buildflags + options = staticlibs + options = !strip + source = git+https://github.com/GPSnoopy/RayTracingInVulkan.git + sha256sums = SKIP + +pkgname = mingw-w64-raytracinginvulkan + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e7fc6d9b1e5c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=mingw-w64-raytracinginvulkan +pkgver=r6 +pkgrel=1 +pkgdesc="Implementation of Peter Shirley's Ray Tracing In One Weekend book (mingw-w64)" +license=('BSD') +arch=('any') +url="https://github.com/GPSnoopy/RayTracingInVulkan" +depends=('mingw-w64-vulkan-icd-loader' 'mingw-w64-glfw' 'mingw-w64-boost') +makedepends=('mingw-w64-cmake' 'mingw-w64-stb-git') +# 'mingw-w64-glm') +options=('!buildflags' 'staticlibs' '!strip') +source=("git+https://github.com/GPSnoopy/RayTracingInVulkan.git") +sha256sums=(SKIP) + +_architectures="x86_64-w64-mingw32" + +prepare () { + cd "$srcdir/RayTracingInVulkan" + curl -L https://github.com/GPSnoopy/RayTracingInVulkan/pull/39.patch | patch -p1 + curl -L https://github.com/GPSnoopy/RayTracingInVulkan/pull/40.patch | patch -p1 + curl -L https://github.com/GPSnoopy/RayTracingInVulkan/pull/41.patch | patch -p1 + curl -L https://github.com/GPSnoopy/RayTracingInVulkan/pull/42.patch | patch -p1 + curl -L https://github.com/GPSnoopy/RayTracingInVulkan/pull/43.patch | patch -p1 +} + +build() { + cd "$srcdir/RayTracingInVulkan" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir/RayTracingInVulkan/build-${_arch}" + make DESTDIR="$pkgdir" install + done +} |