mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-08 20:28:13 +01:00
64e3484c8e
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
17 lines
436 B
Bash
17 lines
436 B
Bash
#!/bin/sh
|
|
# Environment variables for the Qt package.
|
|
#
|
|
# It's best to use the generic directory to avoid
|
|
# compiling in a version-containing path:
|
|
if [ -d /usr/lib@LIBDIRSUFFIX@/qt5 ]; then
|
|
QT5DIR=/usr/lib@LIBDIRSUFFIX@/qt5
|
|
else
|
|
# Find the newest Qt directory and set $QT5DIR to that:
|
|
for qtd in /usr/lib@LIBDIRSUFFIX@/qt5-* ; do
|
|
if [ -d $qtd ]; then
|
|
QT5DIR=$qtd
|
|
fi
|
|
done
|
|
fi
|
|
PATH="$PATH:$QT5DIR/bin"
|
|
export QT5DIR
|