blob: cb8df1dc22788367cb93cddd4dcf833a97ef817b (
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
|
# Maintainer: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
_realname='g3k'
pkgname="$_realname-git"
pkgver=0.16.0.r1353.d237a16
pkgrel=1
pkgdesc='A 3DUI widget toolkit.'
arch=('i686' 'x86_64')
url='https://gitlab.freedesktop.org/xrdesktop/g3k'
depends=('gxr-git' 'libcanberra' 'shaderc' 'cairo' 'dconf' 'gcc-libs' 'json-glib' 'vulkan-icd-loader' 'graphene' 'gtk3' 'gdk-pixbuf2' 'pango' 'glib2' 'glibc' 'gulkan-git')
provides=("$_realname="$pkgver)
conflicts=("$_realname")
makedepends=('meson' 'git' 'glslang' 'gtk-doc' 'vulkan-headers')
license=('MIT')
# options=('debug' '!strip')
source=('git+https://gitlab.freedesktop.org/xrdesktop/g3k.git')
md5sums=('SKIP')
ver() {
PREFIX="project('g3k', 'c', version: '"
echo $(grep "$PREFIX" meson.build | sed -e "s/${PREFIX}//" | sed "s/',//")
}
pkgver() {
cd "$_realname"
printf "$(ver).r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
rm -rf build
arch-meson "$_realname" build --libdir=lib --buildtype release #-Dapi_doc=true
ninja -C build
}
check() {
meson test -C build/ --no-suite post-install --no-suite xr
}
package() {
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 "${srcdir}"/g3k/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|