summaryrefslogtreecommitdiffstats
path: root/arch/tde-libs/tde-libkdcraw
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-10-27 22:43:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-10-29 13:16:09 +0200
commit1838e1a41f12414ad989d5f1c712ef0c62df9bf1 (patch)
tree45622c4f929f769c14ec8640fe61066d8e365f6c /arch/tde-libs/tde-libkdcraw
parentcf9e2a0eeadb7ba2804ec3e8ddab059e32afe9cc (diff)
downloadtde-packaging-1838e1a41f12414ad989d5f1c712ef0c62df9bf1.tar.gz
tde-packaging-1838e1a41f12414ad989d5f1c712ef0c62df9bf1.zip
ArchLinux: Update to R14.0.11
+ Add standalone package tde-cmake-trinity + Switch CMake builds to use Ninja + Switch some packages to CMake + Add tde-tqca and tde-akode + Add tde-i18n packages Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'arch/tde-libs/tde-libkdcraw')
-rw-r--r--arch/tde-libs/tde-libkdcraw/PKGBUILD75
1 files changed, 29 insertions, 46 deletions
diff --git a/arch/tde-libs/tde-libkdcraw/PKGBUILD b/arch/tde-libs/tde-libkdcraw/PKGBUILD
index e6f6e58b6..9dd9cfdc2 100644
--- a/arch/tde-libs/tde-libkdcraw/PKGBUILD
+++ b/arch/tde-libs/tde-libkdcraw/PKGBUILD
@@ -1,66 +1,49 @@
# Maintainer: Michael Manley <mmanley@nasutek.com>
# Contributor: David C. Rankin <drankinatty at gmail dot com>
-pkgname=tde-libkdcraw
-pkgver=14.0.10
+_mod=libkdcraw
+_cat=libraries/
+_kdemod="${_mod/tde/kde}"
+
+pkgname="tde-${_mod}"
+pkgver=14.0.11
pkgrel=1
pkgdesc="The EXIV2 Library interface for TDE kipi-plugins"
arch=('i686' 'x86_64')
-url="https://scm.trinitydesktop.org/scm/git/${pkgname#*-}"
+url="https://scm.trinitydesktop.org/scm/git/${_mod}"
license=('GPL')
groups=('tde-libs')
depends=('tde-tdelibs' 'libraw' 'lcms2')
-makedepends=('pkgconfig' 'autoconf' 'imake')
+makedepends=('tde-cmake-trinity')
optdepends=()
-provides=("${pkgname#*-}")
-conflicts=("trinity-${pkgname#*-}")
-replaces=("trinity-${pkgname#*-}")
+provides=("${_mod}")
+conflicts=("trinity-${_mod}")
+replaces=("trinity-${_mod}")
options=('staticlibs' 'libtool' '!emptydirs')
-# install='pkgname.install'
-source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/libraries/libkdcraw-trinity-${pkgver}.tar.xz")
-md5sums=('fedf15518c80f85174071df185a45c88')
+source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/${_cat}${_mod}-trinity-${pkgver}.tar.xz")
+md5sums=('2daaa1a383d0ccdfd914c29db7f05c37')
[ -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 autotools, libtoolize, aclocal, autoupdate, autoconf, automake, autoreconf"
- aclocal
- autoupdate
- autoconf
- automake --add-missing
-
- 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 \
- --localstatedir=/var \
- --enable-debug=full \
- --enable-closure
-
- ## make $NUMJOBS
- msg "Building - ${pkgname}..."
- make $NUMJOBS
+ msg "Creating out-of-source build directory: ${srcdir}/build"
+ mkdir -p ${srcdir}/build
+ cd ${srcdir}/build
+
+ msg "Starting cmake..."
+ cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver}/ \
+ -GNinja \
+ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \
+ -DBUILD_ALL=ON \
+ -DWITH_ALL_OPTIONS=ON
+
+ msg "Building $pkgname..."
+ ninja $NUMJOBS
}
package() {
- msg "Packaging - $pkgname-$pkgver"
-
- cd ${srcdir}/${pkgname#*-}-trinity-${pkgver} # use for non-out-of-source
-
- make -j1 DESTDIR="$pkgdir" install
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/build
+ DESTDIR="$pkgdir" ninja -j1 install
}