summaryrefslogtreecommitdiff
path: root/community/primus/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/primus/PKGBUILD
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/primus/PKGBUILD')
-rw-r--r--community/primus/PKGBUILD37
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: