blob: 89fd62441e61b63e886951d7ecf11f919a114cc5 (
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
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=cs-paint-git
pkgver=1.0.2.r0.g2eacba9
pkgrel=1
pkgdesc='Library for abstraction of the Vulkan API (git version)'
arch=('x86_64')
url='https://www.copperspice.com/'
license=('BSD-2-Clause')
depends=('gcc-libs' 'vulkan-icd-loader')
makedepends=('git' 'cmake' 'glm' 'glslang' 'vulkan-headers')
provides=('cs-paint')
conflicts=('cs-paint')
options=('!emptydirs')
source=('git+https://github.com/copperspice/cs_paint.git')
sha256sums=('SKIP')
pkgver() {
git -C cs_paint describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^paint\.//;s/^v//'
}
build() {
cmake -B build -S cs_paint \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -D -m644 cs_paint/src/*.h -t "${pkgdir}/usr/include"
install -D -m644 cs_paint/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
rm -rf "${pkgdir}/usr"/{bin/CsPaintDemo,{include,lib/cmake}/glm,lib/pkgconfig/glm.pc}
}
|