27 lines
744 B
Bash
27 lines
744 B
Bash
# Template file for 'primus'
|
|
pkgname=primus
|
|
version=20141123
|
|
revision=1
|
|
hostmakedepends="git"
|
|
makedepends="libX11-devel MesaLib-devel"
|
|
short_desc="Faster OpenGL offloading for Bumblebee"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="ISC"
|
|
homepage="https://github.com/amonakov/primus"
|
|
only_for_archs="i686 x86_64"
|
|
|
|
do_fetch() {
|
|
git clone git://github.com/amonakov/primus.git ${pkgname}-${version}
|
|
}
|
|
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
|
|
}
|