diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-01-22 00:20:45 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-01-22 00:20:45 -0200 |
commit | 16e1ba06c6d1f0ade84cc9afca0cc54238ade5fd (patch) | |
tree | 4ab85bac9710e49aa981f60cf7ff048e5245a698 /libre/ogre-libre/PKGBUILD | |
parent | 4bd60a24f1976e63cf40667397200d568f479e48 (diff) | |
download | abslibre-16e1ba06c6d1f0ade84cc9afca0cc54238ade5fd.tar.gz abslibre-16e1ba06c6d1f0ade84cc9afca0cc54238ade5fd.tar.bz2 abslibre-16e1ba06c6d1f0ade84cc9afca0cc54238ade5fd.zip |
ogre-libre: add mksource
Diffstat (limited to 'libre/ogre-libre/PKGBUILD')
-rw-r--r-- | libre/ogre-libre/PKGBUILD | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/libre/ogre-libre/PKGBUILD b/libre/ogre-libre/PKGBUILD index 57c001e61..9648e5f24 100644 --- a/libre/ogre-libre/PKGBUILD +++ b/libre/ogre-libre/PKGBUILD @@ -43,16 +43,44 @@ makedepends=( mercurial ttf-dejavu ) -source=( +mksource=( ogre::hg+https://bitbucket.org/sinbad/ogre/src#tag=v${pkgver//./-} + libre.patch ) -sha512sums=( +source=( + https://repo.parabolagnulinux.org/other/$pkgbase/$pkgbase-libre-$pkgver.tar.xz +) +mksha512sums=( SKIP + e668b39e4784e4b1b17ec6e21b5cef45f29a8d8e73288817ce7832d1fe24527d5e0d4fd67b8f756db301e4211ceac2d5c387c1599e799ca41de0593457204767 +) +sha512sums=( + 9be9dbd78e09c8c50cf833004bfa3fbb7b3cd2a0f52a4e8c4beb1eb30357625455d65906bd007be6c2be9cf90a0e335d5ad7c5011e038c3d0754d5b3b18c4a2a ) +mksource() { + cd ${pkgbase} + + # remove nonfree files + rm -v RenderSystems/GL/include/GL/{gl{,ext},wglext,glx{tokens,ext}}.h + rm -v RenderSystems/GL3Plus/include/GL/glxtokens-backup.h + rm -rv Samples/Media/materials/textures/nvidia + rm -v Samples/Media/packs/chiropteraDM.{pk3,txt} + rm -v CMake/Templates/quakemap{,_d}.cfg.in + patch -Np1 -i $srcdir/libre.patch +} + build() { cd ${pkgbase} + # add symlinks to point to mesa header files + cd RenderSystems/GL/include/GL + ln -sv /usr/include/GL/gl.h gl.h + ln -sv /usr/include/GL/glext.h glext.h + ln -sv /usr/include/GL/wglext.h wglext.h + ln -sv /usr/include/GL/glxtokens.h glxtokens.h + ln -sv /usr/include/GL/glxext.h glxext.h + # get a clean build dir [[ -d build ]] && rm -vrf build mkdir -v build && cd build |