blob: fd3475e9862b4322840dfd781b348cb583339ccf (
plain)
1 # Description: Low-overhead client-side GPU offloading
2 # URL: https://github.com/amonakov/primus
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
4 # Depends on: mesa3d
5
6 name=primus
7 version=0.2
8 release=1
9 source=(https://github.com/amonakov/$name/archive/v$version/$name-$version.tar.gz \
10 primusrun.patch)
11
12 build() {
13 cd $name-$version
14 patch -p1 -i $SRC/primusrun.patch
15 make
16
17 install -D -m 0755 lib/libGL.so.1 $PKG/usr/lib/primus/libGL.so.1
18 install -D -m 0644 primus.bash-completion $PKG/usr/share/bash-completion/completions/primusrun
19 sed -i -e 's,^PRIMUS_libGL=.*,PRIMUS_libGL=/usr/\\$LIB/primus,' primusrun
20 install -D -m 0755 primusrun $PKG/usr/bin/primusrun
21 install -D -m 0644 primusrun.1 $PKG/usr/share/man/man1/primusrun.1
22 }
|