Add 'glewmx/' from commit '667034a50e0cca6da9252f7026c9ccdd4bbfde5d'

git-subtree-dir: glewmx
git-subtree-mainline: ae5638f530
git-subtree-split: 667034a50e
This commit is contained in:
Manuel 2022-10-18 00:00:02 +02:00
commit c1ebcd1deb
2 changed files with 61 additions and 0 deletions

14
glewmx/.SRCINFO Normal file
View File

@ -0,0 +1,14 @@
pkgbase = glewmx
pkgdesc = The OpenGL Extension Wrangler MX
pkgver = 1.13.0
pkgrel = 1
url = http://launchpad.net/ubuntu/+source/glewmx
arch = x86_64
license = GPL
depends = libxmu
depends = libxi
depends = glu
source = https://launchpad.net/ubuntu/+archive/primary/+files/glewmx_1.13.0.orig.tar.gz
sha256sums = aa25dc48ed84b0b64b8d41cdd42c8f40f149c37fa2ffa39cd97f42c78d128bc7
pkgname = glewmx

47
glewmx/PKGBUILD Executable file
View File

@ -0,0 +1,47 @@
# Maintainer: Manuel Hüsers <aur@huesers.de>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: SleepyDog
pkgname=glewmx
pkgver=1.13.0
pkgrel=1
pkgdesc='The OpenGL Extension Wrangler MX'
arch=('x86_64')
url="http://launchpad.net/ubuntu/+source/glewmx"
license=('GPL')
depends=('libxmu' 'libxi' 'glu')
source=(https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz)
sha256sums=('aa25dc48ed84b0b64b8d41cdd42c8f40f149c37fa2ffa39cd97f42c78d128bc7')
prepare() {
cd "glew-${pkgver}"
# move include folder to subfolder 'glew-1.13.0'
sed -i 's:$(GLEW_DEST)/include/GL:$(GLEW_DEST)/include/glew-1.13.0/GL:' Makefile
sed -i 's|lib64|lib|' config/Makefile.linux
sed -i '/^.PHONY: .*\.pc$/d' Makefile
}
build() {
cd "glew-${pkgver}"
make
}
package() {
cd "glew-${pkgver}"
# update glewmx include path to reflect previous changes (see build comments)
msg update glewmx.pc
sed -i 's:includedir=${prefix}/include:includedir=${prefix}/include/glew-1.13.0:' glewmx.pc
make GLEW_DEST="${pkgdir}/usr" install.all
rm -R ${pkgdir}/usr/bin
rm ${pkgdir}/usr/lib/{libGLEW.so,libGLEW.a}
rm ${pkgdir}/usr/lib/pkgconfig/glew.pc
chmod 0755 "${pkgdir}"/usr/lib/libGLEW*.so.${pkgver}
}