diff options
author | Jonathan Liu | 2015-06-19 11:59:35 +1000 |
---|---|---|
committer | Jonathan Liu | 2015-06-19 11:59:35 +1000 |
commit | 0bf8724e2b4fd3738b08dba8520ffd3cf5303c86 (patch) | |
tree | bfc56b413abcf406796f97f436a2bf69d0b301e5 | |
download | aur-0bf8724e2b4fd3738b08dba8520ffd3cf5303c86.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | glu.patch | 25 | ||||
-rw-r--r-- | zlib.patch | 30 |
4 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2f900ad5f9f3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = glc-lib + pkgdesc = OpenGL Library Class + pkgver = 2.5.0 + pkgrel = 2 + url = http://www.glc-lib.net/ + arch = i686 + arch = x86_64 + license = LGPL + depends = mesa + depends = qt4 + source = https://github.com/laumaya/GLC_lib/archive/Version_2_5_0.zip + source = glu.patch + source = zlib.patch + md5sums = 0cb9fc5609fcbcbb2148e50377d8bf0d + md5sums = 80bb3acdf8a360a3169ac268acee463d + md5sums = 687ed819254496d964ce9e9d3a5e672a + +pkgname = glc-lib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a9029b13536c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Jonathan Liu <net147@gmail.com> +pkgname=glc-lib +pkgver=2.5.0 +pkgrel=2 +pkgdesc="OpenGL Library Class" +arch=('i686' 'x86_64') +url="http://www.glc-lib.net/" +license=('LGPL') +depends=('mesa' 'qt4') +source=("https://github.com/laumaya/GLC_lib/archive/Version_${pkgver//./_}.zip" + "glu.patch" + "zlib.patch") +md5sums=('0cb9fc5609fcbcbb2148e50377d8bf0d' + '80bb3acdf8a360a3169ac268acee463d' + '687ed819254496d964ce9e9d3a5e672a') + +prepare() { + cd "${srcdir}/GLC_lib-Version_${pkgver//./_}" + 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 "${srcdir}/GLC_lib-Version_${pkgver//./_}" + make +} + +package() { + cd "${srcdir}/GLC_lib-Version_${pkgver//./_}" + 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: diff --git a/glu.patch b/glu.patch new file mode 100644 index 000000000000..2713d44be63c --- /dev/null +++ b/glu.patch @@ -0,0 +1,25 @@ +From e7f2324175d6abe3334c8c3144a27bea6de7f024 Mon Sep 17 00:00:00 2001 +From: Laurent Ribon <laurent.ribon@gmail.com> +Date: Mon, 17 Jun 2013 09:39:36 +0200 +Subject: [PATCH] Remove unecessary #include <OpenGL/glu.h> + +--- + examples/example11/glc_declarativeitem.cpp | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/examples/example11/glc_declarativeitem.cpp b/examples/example11/glc_declarativeitem.cpp +index a77a04e..790bd49 100644 +--- a/examples/example11/glc_declarativeitem.cpp ++++ b/examples/example11/glc_declarativeitem.cpp +@@ -11,8 +11,6 @@ + #include <GLC_Exception> + #include <GLC_Factory> + +-#include <OpenGL/glu.h> +- + #include "glc_declarativeitem.h" + + #ifndef GL_MULTISAMPLE +-- +1.8.5.2 + diff --git a/zlib.patch b/zlib.patch new file mode 100644 index 000000000000..ae52112910e2 --- /dev/null +++ b/zlib.patch @@ -0,0 +1,30 @@ +--- a/src/src.pro ++++ b/src/src.pro +@@ -24,7 +24,7 @@ RCC_DIR = ./Build + + DEPENDPATH += . + INCLUDEPATH += . +-INCLUDEPATH += ./3rdparty/zlib ++INCLUDEPATH += ./3rdparty/quazip + + RESOURCES += glc_lib.qrc + +@@ -196,17 +196,7 @@ HEADERS += $${HEADERS_QUAZIP} $${HEADERS_LIB3DS} $${HEADERS_GLC_MATHS} $${HEADER + HEADERS += $${HEADERS_GLC} $${HEADERS_GLEXT} $${HEADERS_GLC_SCENEGRAPH} $${HEADERS_GLC_GEOMETRY} + HEADERS += $${HEADERS_GLC_SHADING} $${HEADERS_GLC_VIEWPORT} $${HEADERS_GLC_3DWIDGET} $${HEADERS_GLC_GLU} + +-SOURCES += 3rdparty/zlib/adler32.c \ +- 3rdparty/zlib/compress.c \ +- 3rdparty/zlib/crc32.c \ +- 3rdparty/zlib/deflate.c \ +- 3rdparty/zlib/gzio.c \ +- 3rdparty/zlib/inffast.c \ +- 3rdparty/zlib/inflate.c \ +- 3rdparty/zlib/inftrees.c \ +- 3rdparty/zlib/trees.c \ +- 3rdparty/zlib/uncompr.c \ +- 3rdparty/zlib/zutil.c ++LIBS += -lz + + SOURCES += 3rdparty/quazip/JlCompress.cpp \ + 3rdparty/quazip/qioapi.cpp \ |