graphics/screengrab: Fix libraries installation path, cleanups.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
NK 2015-03-23 09:37:35 +01:00 committed by Willy Sudiarto Raharjo
parent a80e77504c
commit a587e86113

View file

@ -23,7 +23,7 @@
PRGNAM=screengrab
VERSION=${VERSION:-1.2.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -40,7 +40,6 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
IS64BITS=0
RESPECTLIB64=0
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@ -49,8 +48,8 @@ elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
IS64BITS=1
RESPECTLIB64=1
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@ -77,8 +76,8 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \
-DIS64BITS=$IS64BITS \
-DRESPECTLIB64=$RESPECTLIB64 \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
@ -90,6 +89,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# move the docs in slackware standard location
mkdir $PKG/usr/doc
mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
rmdir $PKG/usr/share/doc
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install