arch-packages/PKGBUILD

48 lines
1.3 KiB
Text
Raw Permalink Normal View History

2022-06-14 00:28:51 +02:00
# Maintainer: Manuel Hüsers <aur@huesers.de>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
2017-02-27 05:59:55 +01:00
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: SleepyDog
pkgname=glewmx
pkgver=1.13.0
pkgrel=1
2022-06-14 00:28:51 +02:00
pkgdesc='The OpenGL Extension Wrangler MX'
arch=('x86_64')
2017-02-27 05:59:55 +01:00
url="http://launchpad.net/ubuntu/+source/glewmx"
license=('GPL')
depends=('libxmu' 'libxi' 'glu')
2022-06-14 00:28:51 +02:00
source=(https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.orig.tar.gz)
sha256sums=('aa25dc48ed84b0b64b8d41cdd42c8f40f149c37fa2ffa39cd97f42c78d128bc7')
2017-02-27 05:59:55 +01:00
2022-06-14 00:28:51 +02:00
prepare() {
cd "glew-${pkgver}"
2017-02-27 05:59:55 +01:00
2022-06-14 00:28:51 +02:00
# 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
2017-02-27 05:59:55 +01:00
2022-06-14 00:28:51 +02:00
sed -i 's|lib64|lib|' config/Makefile.linux
sed -i '/^.PHONY: .*\.pc$/d' Makefile
2017-02-27 05:59:55 +01:00
}
2022-06-14 00:28:51 +02:00
build() {
cd "glew-${pkgver}"
2017-02-27 05:59:55 +01:00
2022-06-14 00:28:51 +02:00
make
}
package() {
cd "glew-${pkgver}"
2017-02-27 05:59:55 +01:00
2022-06-14 00:28:51 +02:00
# 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
2017-02-27 05:59:55 +01:00
2022-06-14 00:28:51 +02:00
make GLEW_DEST="${pkgdir}/usr" install.all
2017-02-27 05:59:55 +01:00
2022-06-14 00:28:51 +02:00
rm -R ${pkgdir}/usr/bin
rm ${pkgdir}/usr/lib/{libGLEW.so,libGLEW.a}
rm ${pkgdir}/usr/lib/pkgconfig/glew.pc
2017-02-27 05:59:55 +01:00
2022-06-14 00:28:51 +02:00
chmod 0755 "${pkgdir}"/usr/lib/libGLEW*.so.${pkgver}
2017-02-27 05:59:55 +01:00
}