blob: b108c7f8012705545f630ac5083ad10167456bc0 (
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
|
pkgbase=msl
pkgname='msl'
pkgver=1.7.6
pkgrel=1
pkgdesc='Shader language based off GLSL that allows compiling multiple shaders into modules.'
arch=('i686' 'x86_64')
url="https://github.com/akb825/ModularShaderLanguage"
license=('Apache')
makedepends=('cmake' 'git')
depends=('boost')
source=()
sha256sums=()
build() {
mkdir MSL && cd MSL
git clone https://github.com/akb825/ModularShaderLanguage .
git checkout v${pkgver}
git submodule update --init --recursive
mkdir build && cd build
# Work around GCC 12 bug triggered by default makepkg.conf CXXFLAGS
CXXFLAGS="$CXXFLAGS -Wno-restrict"
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=TRUE -DMSL_BUILD_DOCS=OFF -DMSL_BUILD_TESTS=OFF -DMSL_SHARED=ON
make
}
package() {
cd MSL/build
make DESTDIR="${pkgdir}" install
}
|