1 # Maintainer: Duong Pham <dthpham@gmail.com>
6 pkgdesc="A tool for viewing OGRE mesh files"
8 url="http://sourceforge.net/projects/ogremeshy/"
10 depends=('ogre>=1.7.3' 'wxgtk>=2.8')
11 makedepends=('cmake>=2.6.4')
12 install=$pkgname.install
13 source=(http://sourceforge.net/projects/$pkgname/files/OgreMeshy.$pkgver.src.tar.bz2 \
14 ogremeshy-1.1-paths.diff \
15 ogremeshy-1.1-resources.diff)
16 md5sums=('2273ebc2c998917929f6d9b8771ec4c9' \
17 '9e9344d0c9783c16415d55457f29abbc' \
18 '21c0294d38e60ecef7c7428d9af51a43')
23 msg "Applying patches..."
24 cd src/Core && patch -p0 < ../../ogremeshy-1.1-paths.diff && cd "$srcdir" || return 1
25 cd scripts/Resources && patch -p0 < ../../ogremeshy-1.1-resources.diff && cd "$srcdir" || return 1
26 sed -i "s/wxWidgets COMPONENTS/wxWidgets COMPONENTS adv/g" CMakeLists.txt
28 msg "Starting make..."
29 mkdir -p build && cd build
31 -DCMAKE_MODULE_PATH=/usr/lib/OGRE/cmake
38 cd scripts/Resources && sh copyresources.sh && cd -
39 cp build/OgreMeshy bin/Release_Linux
42 sed -i "s/PluginFolder=Plugins/PluginFolder=\/usr\/lib\/OGRE/g" ~/.ogremeshy/Plugins.cfg
44 install -d -m717 "${pkgdir}/opt/ogremeshy"
45 install "$srcdir/bin/Release_Linux/OgreMeshy" "$pkgdir/opt/$pkgname"
46 cp -R "$srcdir/bin/Release_Linux/Resources" "$pkgdir/opt/$pkgname"