[arch-commits] Commit in lib32-glew/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Sep 29 06:49:54 UTC 2015


    Date: Tuesday, September 29, 2015 @ 08:49:54
  Author: foutrelis
Revision: 142200

archrelease: copy trunk to multilib-staging-x86_64

Added:
  lib32-glew/repos/multilib-staging-x86_64/
  lib32-glew/repos/multilib-staging-x86_64/PKGBUILD
    (from rev 142199, lib32-glew/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: lib32-glew/repos/multilib-staging-x86_64/PKGBUILD (from rev 142199, lib32-glew/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-staging-x86_64/PKGBUILD	2015-09-29 06:49:54 UTC (rev 142200)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Florian Pritz <flo at xinu.at>
+
+_pkgbasename=glew
+pkgname=lib32-$_pkgbasename
+pkgver=1.13.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-glu' "$_pkgbasename>=$pkgver")
+makedepends=('gcc-multilib')
+source=(http://downloads.sourceforge.net/${_pkgbasename}/${_pkgbasename}-${pkgver}.tgz)
+sha1sums=('d5b1c499f429aa91c466193b4e8ea94a84019e37')
+
+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"
+}



More information about the arch-commits mailing list