development/zed: Fix zed for 14.2.

Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
This commit is contained in:
Ryan P.C. McQuen 2016-01-17 19:28:36 -08:00 committed by Willy Sudiarto Raharjo
parent 13ee631b7a
commit c44f0fd758

View file

@ -24,7 +24,7 @@
PRGNAM=zed
SRCNAM=Zed
VERSION=${VERSION:-1.1.0}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@ -72,23 +72,18 @@ find -L . \
mkdir -pv $PKG/opt/${PRGNAM}/libs/
cp -Rav * $PKG/opt/${PRGNAM}
## fixes udev1 dependency
ln -sfv /usr/lib${LIBDIRSUFFIX}/libudev.so $PKG/opt/${PRGNAM}/libs/libudev.so.1
mkdir -p $PKG/usr/bin
## we make our own script since
## we have to set the lib path
## we make our own script since zed
## has to run from its own directory
cat <<EOT > $PKG/usr/bin/${PRGNAM}
#!/bin/sh
## fix libudev issue
LD_LIBRARY_PATH=/opt/${PRGNAM}/libs/ /opt/${PRGNAM}/${PRGNAM}
/opt/${PRGNAM}/${PRGNAM} "$@"
EOT
chmod 755 $PKG/usr/bin/${PRGNAM}
mkdir -p $PKG/usr/share/pixmaps
ln -sf /opt/${PRGNAM}/${SRCNAM}.png $PKG/usr/share/pixmaps/${PRGNAM}.png
ln -sf $PKG/opt/${PRGNAM}/${SRCNAM}.png $PKG/usr/share/pixmaps/${PRGNAM}.png
mkdir -p $PKG/usr/share/applications
cat $CWD/${PRGNAM}.desktop > $PKG/usr/share/applications/${PRGNAM}.desktop