mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-11 00:24:38 +08:00
40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/lib32-primus
|
|
|
|
_pkgbasename=primus
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=20151110
|
|
pkgrel=1
|
|
pkgdesc="Faster OpenGL offloading for Bumblebee (32-bit library, git sources)"
|
|
arch=('x86_64')
|
|
url="https://github.com/amonakov/primus"
|
|
license=('custom:ISC')
|
|
depends=($_pkgbasename=$pkgver 'bumblebee' 'lib32-mesa-libgl')
|
|
makedepends=('git' 'gcc-multilib')
|
|
source=("git://github.com/amonakov/primus.git#commit=d1afbf6"
|
|
'register_cleanup.patch')
|
|
md5sums=('SKIP'
|
|
'266f8b163c5189d594a3d34a6bcab54a')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${_pkgbasename}"
|
|
patch -Np1 < "$srcdir/register_cleanup.patch"
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${_pkgbasename}"
|
|
export CC="g++ -m32"
|
|
export CXX="g++ -m32"
|
|
|
|
LIBDIR=lib32 make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgbasename}"
|
|
|
|
install -D "lib32/libGL.so.1" "$pkgdir/usr/lib32/primus/libGL.so.1"
|
|
|
|
install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|