27 lines
825 B
Bash
27 lines
825 B
Bash
# Template file for 'primus'
|
|
pkgname=primus
|
|
version=20150328
|
|
revision=1
|
|
_commit=d1afbf6fce2778c0751eddf19db9882e04f18bfd
|
|
makedepends="libX11-devel MesaLib-devel"
|
|
short_desc="Faster OpenGL offloading for Bumblebee"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="ISC"
|
|
homepage="https://github.com/amonakov/primus"
|
|
archs="i686 x86_64"
|
|
distfiles="$homepage/archive/$_commit.tar.gz"
|
|
checksum=6eb0b9fbd93c3d2add983491ae4092f68266925289126ce4055959444b18c65a
|
|
wrksrc="$pkgname-$_commit"
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
do_install() {
|
|
vinstall lib/libGL.so.1 755 usr/lib/primus
|
|
vbin primusrun
|
|
vman primusrun.1
|
|
sed -e "s#^PRIMUS_libGL=.*#PRIMUS_libGL='/usr/\$LIB/primus'#" -i ${DESTDIR}/usr/bin/primusrun
|
|
vinstall primus.bash-completion 644 usr/share/bash-completion/completions primusrun
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|