summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c4855236c6ce9dd2f6f954047a9b6e3e5b11942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: Laurent Carlier <lordheavym@gmail.com>

pkgname=lib32-glu-git
pkgver=9.0.1
pkgrel=1
pkgdesc="Mesa OpenGL utility library (32 bits)"
arch=('x86_64')
url="https://mesa.freedesktop.org/"
license=('LGPL')
depends=('lib32-libgl' 'glu')
makedepends=('gcc-multilib' 'lib32-mesa')
provides=(lib32-glu)
conflicts=(lib32-glu)
source=("git+https://gitlab.freedesktop.org/mesa/glu.git")
sha256sums=('SKIP')
#validpgpkeys=('3BB639E56F861FA2E86505690FDD682D974CA72A') # "Matt Turner <mattst88@gmail.com>"

pkgver() {
  cd glu
  git describe --tags | sed 's/-/+/g'
}

build() {
  cd glu

  export CC="gcc -m32"
  export CXX="g++ -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

  ./autogen.sh
  ./configure --prefix=/usr --disable-static --disable-debug \
    --libdir=/usr/lib32 
  make
}

#check() {
#  cd glu

#  export CC="gcc -m32"
#  export CXX="g++ -m32"
#  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

#  make -k check
#}

package() {
  cd glu

  make DESTDIR=${pkgdir} install
  
  rm -rf ${pkgdir}/usr/include
}