# Maintainer: Michael Manley # Contributor: Pawel 'l0ner' Soltys # Contributor: Calvin Morrison # Contributor: David C. Rankin _mod=tdelibs _cat=core/ _kdemod="${_mod/tde/kde}" pkgname="tde-${_mod}" pkgver=14.1.0 pkgrel=2 pkgdesc="Trinity Desktop core libraries and applications" arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'powerpc64le') url="https://scm.trinitydesktop.org/scm/git/${_mod}" license=('GPL') groups=('tde-core') depends=( 'aspell' 'cryptsetup' 'hspell' 'jasper' 'libcups' 'libidn' 'libutempter' 'libxcomposite' 'libxslt' 'libxtst' 'openssl' 'openexr' 'opensc' 'pcre' 'pkcs11-helper' 'tde-arts' 'tde-avahi-tqt' 'tde-dbus-1-tqt' 'tde-libart-lgpl' 'xorg-iceauth' 'xorg-xmessage' 'xorg-xprop' 'xorg-xset' 'xorg-xsetroot' ) makedepends=('tde-cmake-trinity') provides=("${_mod}") conflicts=("trinity-${_kdemod}" "trinity-${_mod}" "kdemod3-${_kdemod}" "${_kdemod}3") replaces=("trinity-${_kdemod}" "trinity-${_mod}") options=('staticlibs' 'libtool' '!makeflags' '!strip') source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/${_cat}${_mod}-trinity-${pkgver}.tar.xz" 'bp000-41336d84c9.diff') md5sums=('24990c41b5aaf32844adb3eab1a26818' '8344b0545a204e879187b42c983b32e4') install="trinity-${_mod}.install" [ -n "$TDEDIR" ] || TDEDIR=/opt/trinity prepare() { msg "Apply backported patches" cd ${srcdir}/${pkgname#*-}-trinity-${pkgver} || exit 1 patch -p1 < ${srcdir}/bp000-41336d84c9.diff } build() { msg "Creating out-of-source build directory: ${srcdir}/build" mkdir -p ${srcdir}/build cd ${srcdir}/build export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig msg "Starting cmake..." cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver}/ \ -GNinja \ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \ -DSYSCONF_INSTALL_DIR=${TDEDIR}/etc \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DWITH_ARTS=ON \ -DWITH_ALSA=ON \ -DWITH_LIBART=ON \ -DWITH_LIBIDN=ON \ -DWITH_SSL=ON \ -DWITH_CUPS=ON \ -DWITH_LUA=OFF \ -DWITH_TIFF=ON \ -DWITH_JASPER=ON \ -DWITH_OPENEXR=ON \ -DWITH_UTEMPTER=ON \ -DWITH_AVAHI=ON \ -DWITH_PCRE=ON \ -DWITH_GCC_VISIBILITY=ON \ -DWITH_TDEHWLIB_DAEMONS=ON \ -DWITH_UPOWER=ON \ -DWITH_UDISKS2=ON \ -DWITH_UDEVIL=ON \ -DWITH_PCSC=ON \ -DWITH_PKCS=ON \ -DWITH_CRYPTSETUP=ON \ -DWITH_NETWORK_MANAGER_BACKEND=ON \ -DWITH_LZMA=ON \ -DWITH_XRANDR=ON \ -DWITH_XCOMPOSITE=ON \ -DWITH_ASPELL=ON \ -DWITH_HSPELL=ON msg "Building - $pkgname..." ninja $NUMJOBS } package() { msg "Packaging - $pkgname-$pkgver" cd ${srcdir}/build DESTDIR="$pkgdir" ninja -j1 install msg "Removing conflicting images" rm ${pkgdir}/opt/trinity/share/mimelnk/application/x-mplayer2.desktop }