summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiras Zaidan2017-06-01 21:42:59 +0200
committerFiras Zaidan2017-06-01 21:42:59 +0200
commit24a9b11839f75069dfcc192fc60afd264dc7a96c (patch)
tree61d1363ef4b66198357f8642f464c9ea065bca24
parentbdb3f04bed9821f67b448d75af91754360f56172 (diff)
downloadaur-24a9b11839f75069dfcc192fc60afd264dc7a96c.tar.gz
Add symlinks in /usr/lib
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
-rw-r--r--ogre-1.9.install2
3 files changed, 6 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6e19b0520881..668a91e82046 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ogre-1.9
pkgdesc = Scene-oriented, flexible 3D engine written in C++
pkgver = 1.9.0
- pkgrel = 16
+ pkgrel = 17
url = http://www.ogre3d.org
install = ogre-1.9.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 0505fce41041..c09b9deaca43 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
_dir="OGRE-1.9"
pkgname=('ogre-1.9')
pkgver=1.9.0
-pkgrel=16
+pkgrel=17
pkgdesc='Scene-oriented, flexible 3D engine written in C++'
arch=('i686' 'x86_64')
url='http://www.ogre3d.org'
@@ -60,6 +60,10 @@ package() {
make DESTDIR=${pkgdir} install
install -Dm644 ../Docs/License.html ${pkgdir}/usr/share/licenses/${pkgname}/license.html
+
+ # Create symlinks in /usr/lib
+ mkdir -p ${pkgdir}/usr/lib/OGRE/Samples
+ find ${pkgdir}/opt/${_dir}/lib -name "*so.${pkgver}" -exec sh -c 'ln -s `echo "$1" | sed -e "s/^.*opt/\/opt/g"` `echo "$1" | sed -e "s/opt\/OGRE-1.9/usr/g"`' sh {} \;
}
# vim:set ts=2 sw=2 et:
diff --git a/ogre-1.9.install b/ogre-1.9.install
index 5f9bfd7fd4e2..b22a1b14fb56 100644
--- a/ogre-1.9.install
+++ b/ogre-1.9.install
@@ -1,6 +1,4 @@
post_install() {
echo "To view the OGRE samples just run OgreSampleBrowser or launch"
echo "it directly in /opt/OGRE-1.9/samples/"
- echo "Update your paths:"
- echo " export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/OGRE-1.9/lib"
}