summaryrefslogtreecommitdiffstats
path: root/arch/tde-extra/tde-kmplayer/PKGBUILD
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-09-22 17:25:57 +0200
committerSlávek Banko <[email protected]>2021-09-29 09:27:58 +0200
commit97b2476606456d0d385dceb83dbc4657c8472f75 (patch)
treef9d777fdce9a0c3e24b0effbb55ce87dbe0de089 /arch/tde-extra/tde-kmplayer/PKGBUILD
parent746eb0ba7a5d89e64bb5da2e6fff7fb9ce335210 (diff)
downloadtde-packaging-97b2476606456d0d385dceb83dbc4657c8472f75.tar.gz
tde-packaging-97b2476606456d0d385dceb83dbc4657c8472f75.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 <[email protected]> (cherry picked from commit 08dc2d3a905752c1f405392c4f2e33ba577a9b8b)
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
}