Browse Source

l/tqt3: Install in /usr.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
c672efeb97
  1. 27
      l/tqt3/tqt3.SlackBuild

27
l/tqt3/tqt3.SlackBuild

@ -32,7 +32,7 @@ WGET=${WGET:-http://kuiper.mirrorservice.org/sites/trinitydesktop.org/trinity/re
# Build infos
NAMEPKG=${NAMEPKG:-tqt3}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -86,10 +86,14 @@ cd $NAME/tqt3
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
-prefix /opt/trinity \
-libdir /opt/trinity/lib$LIBDIRSUFFIX \
-prefix /usr \
-libdir /usr/lib$LIBDIRSUFFIX \
-docdir /usr/doc/tqt3-$VERSION \
-sysconfdir /etc/trinity \
-headerdir /usr/include/tqt3 \
-plugindir /usr/lib$LIBDIRSUFFIX/tqt3/plugins \
-datadir /usr/share/tqt3 \
-translationdir /usr/share/tqt3/translations \
-sysconfdir /etc/tqt3 \
-I/usr/include/freetype2
LD_LIBRARY_PATH=$(pwd)/lib make -j $JOBS
make install INSTALL_ROOT=$PKG
@ -98,22 +102,13 @@ make install INSTALL_ROOT=$PKG
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Make sure pkg-config finds tqt
ln -s tqt-mt.pc $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/tqt.pc
# Install the documentation
install -m 644 FAQ LICENSE.* README README-QT.TXT README.immodule \
$PKG/usr/doc/tqt3-$VERSION
# Install profile scripts
mkdir -p $PKG/etc/profile.d
cat > $PKG/etc/profile.d/trinity.sh <<EOF
#!/bin/sh
export PATH=\$$PATH:/opt/trinity/bin
EOF
cat > $PKG/etc/profile.d/trinity.csh <<EOF
#!/bin/csh
setenv PATH \${PATH}:/opt/trinity/bin
EOF
chmod 755 $PKG/etc/profile.d/trinity.*
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save