summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92bacf0cb2c63ff43875414f170e99405a119179 (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.1.r0.gdc01ccb
pkgrel=1
pkgdesc='Library for abstraction of the Vulkan API (git version)'
arch=('x86_64')
url='https://www.copperspice.com/'
license=('BSD')
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
    make -C 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}
}