blob: 30781b561b82be48bf7b3bea516439a5ca90aa3c (
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
|
# Maintainer: Joonas Henriksson <joonas.henriksson at gmail com>
pkgbase=glslviewer
pkgname=('glslviewer' 'glslviewer-examples')
pkgver=3.5.2
pkgrel=1
pkgdesc="Console-based GLSL Sandbox for 2D/3D shaders"
arch=('i686' 'x86_64')
url="https://github.com/patriciogonzalezvivo/glslViewer"
license=('BSD-3-Clause')
depends=('glu' 'glfw-x11' 'ncurses' 'ffmpeg')
makedepends=('cmake' 'git' 'libxrandr' 'libxinerama' 'libxi')
source=("$pkgbase::git+https://github.com/patriciogonzalezvivo/glslViewer#tag=$pkgver")
md5sums=('a959b409683f4a09f3f15953b60c5cb4')
prepare() {
cd "$pkgbase"
git submodule init
git submodule update
}
build() {
cmake \
-S "$pkgbase" \
-B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
make -C build
}
package_glslviewer() {
make install -C build DESTDIR="$pkgdir"
install -D -m644 "$pkgbase/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_glslviewer-examples() {
pkgdesc+=" (shader examples)"
depends=()
install -d -m755 "$pkgdir/usr/share/$pkgname/"
cp -r "$pkgbase"/examples/* "$pkgdir/usr/share/$pkgname/"
install -D -m644 "$pkgbase/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|