desktop/kdemultimedia-thumbnailers/PKGBUILD

106 lines
4.0 KiB
Bash
Raw Normal View History

# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
2012-05-30 05:08:43 +08:00
2013-12-18 02:36:04 +08:00
# Include global configuration
2012-05-30 05:08:43 +08:00
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname="kdemultimedia-thumbnailers"
pkgdesc='KDE thumbnailers for several formats'
arch=('x86_64')
2012-05-30 05:08:43 +08:00
pkgver=${_kdever}
2015-01-13 09:16:12 +08:00
pkgrel=2
depends=('mplayer' 'ffmpeg' 'kdelibs' 'taglib')
2012-05-30 05:08:43 +08:00
provides=('ffmpegthumbs' 'mplayerthumbs')
groups=("kde" "kdemultimedia" "kde-uninstall")
install=kdemultimedia.install
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
options=('docs' '!header' 'debug' 'log')
conflicts=('audiothumbs')
provides=('audiothumbs')
2012-05-30 05:08:43 +08:00
makedepends=('pkg-config' 'cmake' 'automoc4' 'docbook-xsl')
source=("$_mirror/ffmpegthumbs-$_kdever.tar.xz"
"$_mirror/mplayerthumbs-$_kdever.tar.xz"
'http://kenai.com/projects/kde-odf-thumbnail/downloads/download/1.0.0/kde-odf-thumbnail-1.0.0.tar.gz'
'https://github.com/aclemens/GimpResourcesThumbnailer/archive/2.1.2.tar.gz'
'http://kde-apps.org/CONTENT/content-files/145088-AudioThumbs-0.2.tar.gz'
'mplayerthumbs-horizontal.patch'
'sprocket-large.png'
'sprocket-medium.png'
'sprocket-small.png')
2014-01-11 20:59:04 +08:00
sha256sums=(`grep ffmpegthumbs-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`
`grep mplayerthumbs-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`
2014-01-13 08:32:18 +08:00
'e1e38ad52e992934576cf04c32b99f08a361a841bd9e582088f6b000d2d87c50'
'a8e964e74a4be92070a9817247d5e7dc12ef4add0fc8165cffbc1d24b5e8ac51'
'6f821fe2c6f2347b7bdbdb48886f78c585b54527216eaa56fcb6673eb80bb05e'
2014-01-13 08:32:18 +08:00
'a559b6196c2fdca6afcbfc2dbdf1105c8bbdecdb88f6130f93e930f890819d56'
'7250534c556dda3e09b57498fd4a8c4cbdff75f4d315ccb2f233f5c7e87aa66f'
'9dcf342c7068e973285e9ea252584372fde841686877a3bbaecbf9732446fb7d'
'a043b85535c69181b5a7562dd55784831a9601c05d6f80404cfb7fea01057726')
2012-05-30 05:08:43 +08:00
build() {
pushd ${srcdir}/ffmpegthumbs-${pkgver}
cmake . \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make VERBOSE=1
popd
2012-05-30 05:08:43 +08:00
pushd ${srcdir}/mplayerthumbs-${pkgver}
msg "Applying patch..."
patch -Np2 -i ${srcdir}/mplayerthumbs-horizontal.patch
cmake . \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make VERBOSE=1
popd
2012-05-30 05:08:43 +08:00
pushd $srcdir/kde-odf-thumbnail-1.0.0
cmake . \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
popd
2012-05-30 05:08:43 +08:00
pushd $srcdir/GimpResourcesThumbnailer-2.1.2
cmake . \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
popd
2012-05-30 05:08:43 +08:00
pushd $srcdir/
cmake . \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
popd
2012-05-30 05:08:43 +08:00
}
package() {
splitdirs="mplayerthumbs ffmpegthumbs"
for i in ${splitdirs}; do
cd ${srcdir}/${i}-${pkgver}
make DESTDIR=${pkgdir} install
done
2012-05-30 05:08:43 +08:00
install -D -m644 ${srcdir}/sprocket-large.png ${pkgdir}/usr/share/apps/videothumbnail/sprocket-large.png
install -D -m644 ${srcdir}/sprocket-medium.png ${pkgdir}/usr/share/apps/videothumbnail/sprocket-medium.png
install -D -m644 ${srcdir}/sprocket-small.png ${pkgdir}/usr/share/apps/videothumbnail/sprocket-small.png
2012-05-30 05:08:43 +08:00
cd $srcdir/kde-odf-thumbnail-1.0.0
make DESTDIR=${pkgdir} install
2012-05-30 05:08:43 +08:00
cd $srcdir/GimpResourcesThumbnailer-2.1.2
make DESTDIR=${pkgdir} install
2012-05-30 05:08:43 +08:00
cd $srcdir/
make DESTDIR=${pkgdir} install
2012-05-30 05:08:43 +08:00
}