diff options
author | Firas Zaidan | 2017-06-01 21:42:59 +0200 |
---|---|---|
committer | Firas Zaidan | 2017-06-01 21:42:59 +0200 |
commit | 24a9b11839f75069dfcc192fc60afd264dc7a96c (patch) | |
tree | 61d1363ef4b66198357f8642f464c9ea065bca24 | |
parent | bdb3f04bed9821f67b448d75af91754360f56172 (diff) | |
download | aur-24a9b11839f75069dfcc192fc60afd264dc7a96c.tar.gz |
Add symlinks in /usr/lib
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | ogre-1.9.install | 2 |
3 files changed, 6 insertions, 4 deletions
@@ -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 @@ -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" } |