# Maintainer: Michael Manley # Contributor: David C. Rankin _mod=gtk3-tqt-engine _cat=applications/themes/ _kdemod="${_mod/tde/kde}" pkgname="tde-${_mod}" pkgver=14.0.11 pkgrel=1 pkgdesc="gtk3 tqt engine" arch=('i686' 'x86_64') url="https://scm.trinitydesktop.org/scm/git/${_mod}" license=('GPL') groups=('tde-extra') depends=('tde-tdelibs' 'gtk3') makedepends=('tde-cmake-trinity') provides=("${_mod}") conflicts=("trinity-${_kdemod}" "kdemod3-${_kdemod}") replaces=("trinity-${_mod}") options=('staticlibs' 'libtool' '!strip') source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/${_cat}${_mod}-trinity-${pkgver}.tar.xz") md5sums=('00a83443141c5c588f41e72ef74ceaf7') install='' [ -n "$TDEDIR" ] || TDEDIR=/opt/trinity [ -n "$QTDIR" ] || QTDIR=${TDEDIR}/tqt3 build() { ## Generate config files and update with autoreconf cd ${srcdir}/${pkgname#*-}-trinity-${pkgver} msg "Copying system libtool files...." cp /usr/share/aclocal/libtool.m4 ./admin/libtool.m4.in cp /usr/share/libtool/build-aux/ltmain.sh ./admin/ltmain.sh msg "Running make -f admin/Makefile.common ...." make -f admin/Makefile.common ## configure msg "Configuring - ${pkgname}..." ./configure \ --prefix=${TDEDIR} \ --with-qt-dir=${QTDIR} \ --with-qt-includes=${QTDIR}/include \ --with-qt-libraries=${QTDIR}/lib \ --with-extra-includes="/usr/include/tqt:/usr/include/tqt/Qt" \ --with-extra-libs="${TDEDIR}/lib:${TDEDIR}/lib/trinity" \ msg "Building - ${pkgname}..." make $NUMJOBS } package() { msg "Packaging - $pkgname-$pkgver" cd ${srcdir}/${pkgname#*-}-trinity-${pkgver} make -j1 DESTDIR="${pkgdir}" install }