void-packages/srcpkgs/primus/template

27 lines
741 B
Text
Raw Normal View History

2013-08-28 15:31:25 +00:00
# Template file for 'primus'
pkgname=primus
2014-11-23 09:31:09 +00:00
version=20141123
2013-08-28 15:31:25 +00:00
revision=1
hostmakedepends="git"
2013-08-28 15:31:25 +00:00
makedepends="libX11-devel MesaLib-devel"
short_desc="Faster OpenGL offloading for Bumblebee"
maintainer="Juan RP <xtraeme@gmail.com>"
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() {
2014-11-23 09:31:09 +00:00
make ${makejobs}
2013-08-28 15:31:25 +00:00
}
do_install() {
vinstall lib/libGL.so.1 755 usr/lib/primus
2014-11-23 09:31:09 +00:00
vbin primusrun
vman primusrun.1
2013-08-28 15:31:25 +00:00
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
2014-11-23 09:31:09 +00:00
vlicense LICENSE.txt LICENSE
2013-08-28 15:31:25 +00:00
}