1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Alexander Monakov <amonakov@gmail.com>
7 pkgdesc="Faster OpenGL offloading for Bumblebee"
9 url="https://github.com/amonakov/primus"
10 license=('custom:ISC')
13 _commit=d1afbf6fce2778c0751eddf19db9882e04f18bfd # master
14 source=("git+https://github.com/amonakov/primus#commit=$_commit"
15 "register_cleanup.patch")
17 'fd48f89c55c1ad854d7a985781faed2c52c0135f')
21 patch -Np1 -i ../register_cleanup.patch
32 sed -e '/^PRIMUS_libGL=/cPRIMUS_libGL=/usr/\\$LIB/primus' \
33 -e '/^exec/iexport __GLVND_DISALLOW_PATCHING=1' \
34 primusrun | install -D /dev/stdin "$pkgdir/usr/bin/primusrun"
36 install -D lib/libGL.so.1 "$pkgdir/usr/lib/primus/libGL.so.1"
37 install -D primus.bash-completion "$pkgdir/usr/share/bash-completion/completions/primusrun"
38 install -D primusrun.1 "$pkgdir/usr/share/man/man1/primusrun.1"
39 install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/primus/LICENSE"
42 # vim:set ts=2 sw=2 et: