summaryrefslogtreecommitdiffstats
path: root/arch/calvin/trinity-qt3/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'arch/calvin/trinity-qt3/PKGBUILD')
-rw-r--r--arch/calvin/trinity-qt3/PKGBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/calvin/trinity-qt3/PKGBUILD b/arch/calvin/trinity-qt3/PKGBUILD
index fd2d3be47..2fe272238 100644
--- a/arch/calvin/trinity-qt3/PKGBUILD
+++ b/arch/calvin/trinity-qt3/PKGBUILD
@@ -61,6 +61,7 @@ fi
#make -C qmake || return 1
./configure -prefix ${_prefix} \
-fast \
+ -sysconfdir /etc/qt \
-thread \
-shared \
-system-zlib \
@@ -72,6 +73,14 @@ fi
package() {
cd "$srcdir/$_gitname"
- make INSTALL_ROOT="$pkgdir/" install
+
+ # Build and install qt.profile
+ echo "export QTDIR=${_prefix}" > ${srcdir}/qt.profile
+ echo "export QT_XFT=true" >> ${srcdir}/qt.profile
+ echo 'export PATH=$PATH:$QTDIR/bin' >> ${srcdir}/qt.profile
+ echo 'export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$QTDIR/pkgconfig' >> ${srcdir}/qt.profile
+ install -D -m755 ${srcdir}/qt.profile ${pkgdir}/etc/profile.d/qt3.sh
+
+ make INSTALL_ROOT="$pkgdir/" install
}