blob: fc38c2f047be27cbfe35f13842cb01fcb6b91e3c (
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
|
# Maintainer: Jonathan Liu <net147@gmail.com>
pkgname=glc-lib
pkgver=2.5.0
pkgrel=6
pkgdesc="OpenGL Library Class"
arch=('i686' 'x86_64')
url="http://www.glc-lib.net/"
license=('LGPL')
depends=('libgl' 'qt4')
makedepends=('git')
source=("git+https://github.com/laumaya/GLC_lib.git#tag=Version_2_5_0"
"glu.patch"
"zlib.patch")
md5sums=('SKIP'
'80bb3acdf8a360a3169ac268acee463d'
'687ed819254496d964ce9e9d3a5e672a')
prepare() {
cd GLC_lib
patch -Np1 -i "${srcdir}/glu.patch"
patch -Np1 -i "${srcdir}/zlib.patch"
sed -i -e 's#/usr/local/#/usr/#g' install.pri
sed -i -e 's#SUBDIRS += src examples#SUBDIRS += src#' glc_lib.pro
qmake-qt4
}
build() {
cd GLC_lib
make
}
package() {
cd GLC_lib
make INSTALL_ROOT="${pkgdir}" install
install -d "${pkgdir}/usr/include"
ln -sf GLC_lib-2.5 "${pkgdir}/usr/include/GLC_lib"
}
# vim:set ts=2 sw=2 et:
|