archrelease: copy trunk to community-any
[ArchLinux/community.git] / lib32-primus / trunk / PKGBUILD
blob480864ccd9b1ea24ba31ea2920e24451a39c94a3
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Alexander Monakov <amonakov@gmail.com>
4 pkgname=lib32-primus
5 pkgver=20151110
6 pkgrel=5
7 pkgdesc="Faster OpenGL offloading for Bumblebee (32-bit)"
8 arch=('x86_64')
9 url="https://github.com/amonakov/primus"
10 license=('custom:ISC')
11 depends=('bumblebee' 'lib32-mesa-libgl')
12 makedepends=('git' 'gcc-multilib')
13 source=("git+https://github.com/amonakov/primus.git#commit=d1afbf6"
14         "register_cleanup.patch")
15 sha512sums=('SKIP'
16             'f0b3312e7d20fea2b1dfacc896c951ab30f532561608654dedb1d6c863653b01cc233b386e5a7832c8ed3f9ca3246c6374fd1ebf2da07721edd802e15dc6b0b0')
18 prepare() {
19   cd primus
21   patch -Np1 < "$srcdir/register_cleanup.patch"
24 build() {
25   cd primus
27   export CC="g++ -m32"
28   export CXX="g++ -m32"
30   LIBDIR=lib32 make
33 package() {
34   cd primus
36   install -D "lib32/libGL.so.1" "$pkgdir/usr/lib32/primus/libGL.so.1"
38   install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
41 # vim:set ts=2 sw=2 et: