core/primus/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

2013-02-26 03:55:29 +08:00
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
2014-03-06 07:11:33 +08:00
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/primus
2015-01-04 21:24:03 +08:00
# If you update this package,please remember to update lib32-primus!
pkgname=primus
2016-04-15 06:24:14 +08:00
pkgver=20151110
pkgrel=2
pkgdesc="Faster OpenGL offloading for Bumblebee (git sources)"
arch=('x86_64')
url="https://github.com/amonakov/primus"
license=('custom:ISC')
2013-05-22 17:46:20 +08:00
depends=('bumblebee')
makedepends=('git')
provides=('primus')
2016-04-15 06:24:14 +08:00
source=("git://github.com/amonakov/primus.git#commit=d1afbf6"
"register_cleanup.patch")
sha1sums=('SKIP'
'cec9946b5f90d7b4fb7be03df9d651d903bd1062')
2016-04-15 06:24:14 +08:00
prepare() {
cd primus
patch -Np1 < "$srcdir/register_cleanup.patch"
}
build() {
cd "${srcdir}/${pkgname}"
make
}
package() {
cd "${srcdir}/${pkgname}"
sed -e '/^PRIMUS_libGL=/cPRIMUS_libGL=/usr/\\$LIB/primus' \
-e '/^exec/iexport __GLVND_DISALLOW_PATCHING=1' \
primusrun | install -D /dev/stdin "$pkgdir/usr/bin/primusrun"
install -D "lib/libGL.so.1" "$pkgdir/usr/lib/primus/libGL.so.1"
2013-02-26 03:55:29 +08:00
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 -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}