blob: d779980ebd14f09254dbd548453c03aca392924b (
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
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
pkgname=libglu-git
pkgver=20120908
pkgrel=1
pkgdesc='Mesa GLU utility library'
arch=(
i686
x86_64
mips64el
)
url=http://mesa.freedesktop.org/
license=(
LGPL
)
depends=(
libgl-git
)
makedepends=(
git
mesa-git
)
_gitroot=git://cgit.freedesktop.org/mesa/glu/
_gitname=glu
build() {
msg 'Connecting to git.freedesktop.org GIT server....'
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
else
git clone $_gitroot --depth 1
fi
msg 'GIT checkout done or server timeout'
msg 'Starting make...'
cd $srcdir
# Cleanup and prepare the build dir
[ -d build ] && rm -rf build
cp -r $_gitname build
cd build
autoreconf -vfi
./autogen.sh --prefix=/usr
make V=0
}
package() {
cd $srcdir/build
make DESTDIR=$pkgdir install
}
|