mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
glew update
This commit is contained in:
parent
b472de6128
commit
459d65abc6
34
lib32-glew/PKGBUILD
Normal file
34
lib32-glew/PKGBUILD
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||||
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||||
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
||||||
|
|
||||||
|
_pkgbasename=glew
|
||||||
|
pkgname=lib32-$_pkgbasename
|
||||||
|
pkgver=1.9.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A cross-platform C/C++ extension loading library (32 bit)"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="http://glew.sourceforge.net"
|
||||||
|
license=('BSD' 'MIT' 'GPL')
|
||||||
|
depends=('lib32-libxmu' 'lib32-libxi' 'lib32-mesa' "$_pkgbasename>=$pkgver" )
|
||||||
|
makedepends=('gcc-multilib')
|
||||||
|
source=(http://downloads.sourceforge.net/${_pkgbasename}/${_pkgbasename}-${pkgver}.tgz)
|
||||||
|
sha1sums=('9291f5c5afefd482c7f3e91ffb3cd4716c6c9ffe')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||||
|
sed -i 's|CC = cc|CC = gcc -m32|' config/Makefile.linux
|
||||||
|
sed -i 's|LD = cc|LD = gcc -m32|' config/Makefile.linux
|
||||||
|
sed -i 's|lib64|lib32|' config/Makefile.linux
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||||
|
make GLEW_DEST="${pkgdir}/usr" install
|
||||||
|
chmod 0755 "${pkgdir}/usr/lib32/libGLEW.so.${pkgver}"
|
||||||
|
|
||||||
|
rm -rf "${pkgdir}"/usr/{include,bin}
|
||||||
|
mkdir -p "$pkgdir/usr/share/licenses"
|
||||||
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user