Date: Friday, April 7, 2023 @ 11:52:35
Author: felixonmars
Revision: 1441112
archrelease: copy trunk to community-staging-x86_64
Added:
ogre/repos/community-staging-x86_64/
ogre/repos/community-staging-x86_64/PKGBUILD
(from rev 1441111, ogre/trunk/PKGBUILD)
ogre/repos/community-staging-x86_64/ogre.install
(from rev 1441111, ogre/trunk/ogre.install)
--------------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
ogre.install | 3 +++
2 files changed, 56 insertions(+)
Copied: ogre/repos/community-staging-x86_64/PKGBUILD (from rev 1441111,
ogre/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-07 11:52:35 UTC (rev 1441112)
@@ -0,0 +1,53 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+pkgname=ogre
+pkgver=13.6.3
+pkgrel=2
+pkgdesc='Scene-oriented, flexible 3D engine written in C++'
+arch=('x86_64')
+url='http://www.ogre3d.org'
+license=('custom:MIT')
+depends=('freeimage' 'freetype2' 'libxaw' 'libxrandr' 'sdl2' 'glu' 'pugixml'
'zlib')
+makedepends=('cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'python' 'ninja'
'cppunit' 'swig')
+install=ogre.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/OGRECave/ogre/archive/v${pkgver}.tar.gz")
+optdepends=('python: python bindings')
+sha512sums=('9276f59a9c9ef0a5c04fed131e32805313fe232a8c93121110add62c0c526d9ce511d9a7738722783f837b38bd103d0155e8663b9498252543317eba84ad73f0')
+
+prepare() {
+ cd ogre-${pkgver}
+ sed -i 's|set(PYTHON_SITE_PACKAGES
lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages/Ogre/)|set(PYTHON_SITE_PACKAGES
lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages/Ogre/
CACHE FILEPATH "")|' Components/Python/CMakeLists.txt
+}
+
+build() {
+ cd ogre-${pkgver}
+
+ cmake \
+ -Bbuild \
+ -GNinja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DOGRE_BUILD_TESTS=ON \
+ -DOGRE_BUILD_DEPENDENCIES=OFF \
+ -DPYTHON_SITE_PACKAGES=$(python -c "import sysconfig;
print(sysconfig.get_paths()[\"platlib\"]+'/Ogre/')")
+
+ ninja -C build
+ ninja -C build OgreDoc
+}
+
+check() {
+ cd ogre-${pkgver}
+
+ ninja -C build test
+}
+
+package() {
+ cd ogre-${pkgver}
+
+ DESTDIR="${pkgdir}" ninja -C build install
+
+ mkdir -p "${pkgdir}"/opt/ogre/samples
+ mv "${pkgdir}"/usr/bin/SampleBrowser "${pkgdir}"/opt/ogre/samples
+ mv "${pkgdir}"/usr/bin/Test_* "${pkgdir}"/opt/ogre/samples
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
Copied: ogre/repos/community-staging-x86_64/ogre.install (from rev 1441111,
ogre/trunk/ogre.install)
===================================================================
--- community-staging-x86_64/ogre.install (rev 0)
+++ community-staging-x86_64/ogre.install 2023-04-07 11:52:35 UTC (rev
1441112)
@@ -0,0 +1,3 @@
+post_install() {
+ echo "Ogre samples are in /opt/ogre/samples"
+}