blob: d6b5ecf5a6a32cf41d87f16dfcc9592e7536c982 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Arthur LAURENT <arthur.laurent4@gmail.com>
pkgname='ashes-git'
pkgver=r739.3a062fd6
pkgrel=1
pkgdesc='Drop-in replacement for Vulkan shared library, for older hardware compatibility'
arch=('any')
url="https://github.com/DragonJoker/Ashes"
license=('MIT')
provides=('ashes')
depends=('libxrandr' 'mesa' 'vulkan-headers')
makedepends=('cmake' 'git')
conflicts=('ashes-stable')
source=('git+https://github.com/DragonJoker/Ashes.git')
sha256sums=('SKIP')
pkgver() {
cd 'Ashes'
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd 'Ashes'
git submodule update --init
}
build() {
cd 'Ashes'
cmake . \
-DASHES_BUILD_SAMPLES=OFF \
-DASHES_BUILD_TEMPLATES=OFF \
-DASHES_BUILD_SW_SAMPLES=OFF \
-DASHES_BUILD_TESTS=OFF \
-DPROJECTS_GENERATE_DOC=OFF \
-DPROJECTS_PROFILING=OFF \
-DPROJECTS_USE_PRECOMPILED_HEADERS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$pkgdir/usr"
cmake --build .
}
package() {
cd 'Ashes'
cmake --build . --target install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/ashes/LICENSE"
}
|