diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/primus/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/primus/PKGBUILD')
-rw-r--r-- | community/primus/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/primus/PKGBUILD b/community/primus/PKGBUILD new file mode 100644 index 000000000..8abcacf90 --- /dev/null +++ b/community/primus/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Alexander Monakov <amonakov@gmail.com> + +pkgname=primus +pkgver=20130425 +pkgrel=1 +pkgdesc="Faster OpenGL offloading for Bumblebee" +arch=('i686' 'x86_64') +url="https://github.com/amonakov/primus" +license=('custom:ISC') +depends=('bumblebee') +makedepends=('git') +source=("git://github.com/amonakov/primus.git#commit=31ca47e644") +sha1sums=('SKIP') + +build() { + cd primus + + make +} + +package() { + cd primus + + install -D "lib/libGL.so.1" "$pkgdir/usr/lib/primus/libGL.so.1" + sed -e "s#^PRIMUS_libGL=.*#PRIMUS_libGL='/usr/\$LIB/primus'#" primusrun > primusrun.dist + install -D "primusrun.dist" "$pkgdir/usr/bin/primusrun" + + install -D "primus.bash-completion" "$pkgdir/etc/bash_completion.d/primusrun" + + gzip -9 "primusrun.1" + install -D "primusrun.1.gz" "$pkgdir/usr/share/man/man1/primusrun.1.gz" + + install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: |