summaryrefslogtreecommitdiffstats
path: root/arch/tde-extra/tde-kmplayer/PKGBUILD
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-09-22 17:25:57 +0200
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2021-09-29 06:38:41 +0000
commit08dc2d3a905752c1f405392c4f2e33ba577a9b8b (patch)
tree2e6f4dbd0bf48e8fe6bc4e41888253eef71d3f32 /arch/tde-extra/tde-kmplayer/PKGBUILD
parent9ef3d4a4b9fc3e366f4a169482997f5ce2fbdf4f (diff)
downloadtde-packaging-08dc2d3a905752c1f405392c4f2e33ba577a9b8b.tar.gz
tde-packaging-08dc2d3a905752c1f405392c4f2e33ba577a9b8b.zip
ArchLinux: Update remaining application in tde-extra to R14.0.10.
Switch amarok, kmplayer, ksplash-engine-moodin, tde-systemsettings, tdesudo and tdmtheme to CMake. Backport patches to tdesudo to resolve FTBFS. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'arch/tde-extra/tde-kmplayer/PKGBUILD')
-rw-r--r--arch/tde-extra/tde-kmplayer/PKGBUILD66
1 files changed, 27 insertions, 39 deletions
diff --git a/arch/tde-extra/tde-kmplayer/PKGBUILD b/arch/tde-extra/tde-kmplayer/PKGBUILD
index a5b3bdcc5..b36d9203f 100644
--- a/arch/tde-extra/tde-kmplayer/PKGBUILD
+++ b/arch/tde-extra/tde-kmplayer/PKGBUILD
@@ -2,59 +2,47 @@
# Contributor: David C. Rankin <drankinatty at gmail dot com>
pkgname=tde-kmplayer
-pkgver=14.0.5
+pkgver=14.0.10
pkgrel=1
pkgdesc="TDE KMPlayer"
arch=('i686' 'x86_64')
-url='http://scm.trinitydesktop.org/scm/git/applications/kmplayer'
+url='https://scm.trinitydesktop.org/scm/git/applications/kmplayer'
license=('GPL')
groups=('tde-extra')
depends=('tde-tdebase' 'dbus-glib')
-makedepends=('pkgconfig' 'cmake' 'mplayer')
+makedepends=('pkgconfig' 'cmake' 'mplayer' 'xine-lib')
#provides=('kmplayer')
#conflicts=('kmplayer')
#replaces=('kmplayer')
options=('staticlibs' 'libtool' '!strip')
-source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/applications/kmplayer-R${pkgver}.tar.bz2"
- "callback-stub-fix.patch")
-md5sums=('968e2116b333ea646ce00fd2ab2038a8'
- '31ed0b0814a3855c65541c058ac91a68')
+source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/applications/kmplayer-trinity-${pkgver}.tar.xz")
+md5sums=('e817acc32c3f87cc475be8d8c7a1b4a7')
# install=''
-build() {
- ## Generate config files and update with autoreconf
- cd ${srcdir}/applications/${pkgname#*-}
-
- msg "Patching for callback stub header..."
- patch -p1 -i ${srcdir}/callback-stub-fix.patch
-
- 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
+[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
- ## configure
- msg "Configuring - ${pkgname}..."
- CFLAGS="${CFLAGS} -fpermissive" \
- CXXFLAGS="${CXXFLAGS} -fpermissive" \
- ./configure \
- --prefix=${TDEDIR} \
- --with-qt-dir=${QTDIR} \
- --with-qt-includes=${QTDIR}/include \
- --with-qt-libraries=${QTDIR}/lib \
- --sysconfdir=${TDEDIR}/etc \
- --localstatedir=/var \
- --enable-closure
-
- msg "Building - ${pkgname#*-}..."
-make $NUMJOBS
+build() {
+ cd $srcdir
+ msg "Creating out-of-source build directory: ${srcdir}/build"
+ mkdir -p build
+ cd build
+
+ export PKG_CONFIG_PATH=${TDEDIR}/lib/pkgconfig:${PKG_CONFIG_PATH}
+
+ msg "Starting cmake..."
+ cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver} \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \
+ -DBUILD_ALL=ON \
+ -DBUILD_KOFFICE_PLUGIN=OFF \
+ -DBUILD_KGSTPLAYER=OFF
+
+ msg "Building - ${pkgname#*-}..."
+ make $NUMJOBS
}
package() {
-msg "Packaging - $pkgname-$pkgver"
- cd ${srcdir}/applications/${pkgname#*-} # use for libtool
-
-make -j1 DESTDIR="${pkgdir}" install
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/build
+ make -j1 DESTDIR="${pkgdir}" install
}