summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2016-01-15 22:04:31 +0100
committerMichel Zou2016-01-15 22:04:31 +0100
commite8044772605bafe4d7b5e907c6c871bafe48fa50 (patch)
treecdd6f06256dc4581bf9e8c1a2cec93b2757708aa
parent2f6b28f12e978fc1ecd613829e9efb245dee152e (diff)
downloadaur-e8044772605bafe4d7b5e907c6c871bafe48fa50.tar.gz
1.13.0
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD73
2 files changed, 38 insertions, 45 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 66319329c15..ac6ca2a389e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Fri Jan 15 21:04:31 UTC 2016
pkgbase = mingw-w64-glew
pkgdesc = GLEW, The OpenGL Extension Wrangler Library (mingw-w64)
- pkgver = 1.11.0
- pkgrel = 3
+ pkgver = 1.13.0
+ pkgrel = 1
url = http://glew.sourceforge.net/
arch = any
license = Modified BSD/MIT/GPL
@@ -12,8 +14,8 @@ pkgbase = mingw-w64-glew
options = !strip
options = !buildflags
options = staticlibs
- source = http://downloads.sourceforge.net/glew/glew-1.11.0.tgz
- md5sums = f6d72c7426a5f66580ad09e50816450a
+ source = http://downloads.sourceforge.net/glew/glew-1.13.0.tgz
+ md5sums = 7cbada3166d2aadfc4169c4283701066
pkgname = mingw-w64-glew
diff --git a/PKGBUILD b/PKGBUILD
index 22682a7967c..642766df9ad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,60 +1,51 @@
-# Maintainer: naelstrof <naelstrof@gmail.com>
pkgname=mingw-w64-glew
-pkgver=1.11.0
-pkgrel=3
+pkgver=1.13.0
+pkgrel=1
pkgdesc="GLEW, The OpenGL Extension Wrangler Library (mingw-w64)"
arch=('any')
url="http://glew.sourceforge.net/"
license=('Modified BSD/MIT/GPL')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-gcc')
-options=(!strip !buildflags staticlibs)
+options=('!strip' '!buildflags' 'staticlibs')
provides=('mingw-w64-glew-lib32' 'mingw-w64-glew-pure64')
-source=(http://downloads.sourceforge.net/glew/glew-${pkgver}.tgz)
-noextract=()
-md5sums=('f6d72c7426a5f66580ad09e50816450a')
+source=("http://downloads.sourceforge.net/glew/glew-${pkgver}.tgz")
+md5sums=('7cbada3166d2aadfc4169c4283701066')
+
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
#Config file to use included in ${srcdir}/glew-${pkgver}/config
_config="mingw"
build() {
- cd ${srcdir}/glew-${pkgver}
- #Patch the makefile (Stolen from original pkgbuild, not sure if required)
- sed -i "s/\<cr\>/crs/g" Makefile
- sed -i "s/\<GLEW\>/glew32/g" Makefile
- sed -i "s/\<GLEWmx\>/glew32mx/g" Makefile
- unset LDFLAGS
- for _arch in ${_architectures}; do
- cp -R ${srcdir}/glew-${pkgver} ${srcdir}/glew-${pkgver}-${_arch}
- cd ${srcdir}/glew-${pkgver}-${_arch}
- #Patch the config file, required because putting LD as an env var doesn't work for whatever reason.
- sed -i "/^\<LD\>/d" config/Makefile.${_config}
- #gcc replaces ld because ld doesn't work.
- echo "LD := ${_arch}-gcc" >> config/Makefile.${_config}
- #Finally compile
- make SYSTEM=${_config} \
- CC=${_arch}-gcc \
- AR="${_arch}-ar" \
- RANLIB="${_arch}-ranlib" \
- STRIP="${_arch}-strip" \
- LD="${_arch}-gcc" \
- GLEW_DEST="${pkgdir}/usr/${_arch}" \
- all
+ cd ${srcdir}/glew-${pkgver}
+ #Patch the makefile (Stolen from original pkgbuild, not sure if required)
+ sed -i "s/\<cr\>/crs/g" Makefile
+ for _arch in ${_architectures}; do
+ cp -R ${srcdir}/glew-${pkgver} ${srcdir}/glew-${pkgver}-${_arch}
+ cd ${srcdir}/glew-${pkgver}-${_arch}
+ #Patch the config file, required because putting LD as an env var doesn't work for whatever reason.
+ sed -i "/^\<LD\>/d" config/Makefile.${_config}
+ #gcc replaces ld because ld doesn't work.
+ echo "LD := ${_arch}-gcc" >> config/Makefile.${_config}
+ make SYSTEM=${_config} \
+ CC=${_arch}-gcc \
+ AR="${_arch}-ar" \
+ ARFLAGS=crs \
+ RANLIB="${_arch}-ranlib" \
+ STRIP="${_arch}-strip" \
+ LD="${_arch}-gcc" \
+ GLEW_DEST="${pkgdir}/usr/${_arch}" \
+ CFLAGS.EXTRA="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" \
+ all
done
}
package() {
- #And then install
- for _arch in ${_architectures}; do
- cd ${srcdir}/glew-${pkgver}-${_arch}
- make SYSTEM=${_config} \
- CC=${_arch}-gcc \
- AR="${_arch}-ar" \
- RANLIB="${_arch}-ranlib" \
- STRIP="${_arch}-strip" \
- LD="${_arch}-gcc" \
- GLEW_DEST="${pkgdir}/usr/${_arch}" \
- install
- done
+ for _arch in ${_architectures}; do
+ cd ${srcdir}/glew-${pkgver}-${_arch}
+ make SYSTEM=${_config} \
+ GLEW_DEST="${pkgdir}/usr/${_arch}" \
+ install
+ done
}