desktop/kdemultimedia-ffmpegthumbs/PKGBUILD

36 lines
908 B
Bash
Raw Normal View History

source ../kdeapps.conf
pkgname=kdemultimedia-ffmpegthumbs
_pkgname=ffmpegthumbs
pkgver=${_kdever}
pkgrel=1
pkgdesc='FFmpeg-based thumbnail creator for video files'
url='https://projects.kde.org/projects/kde/kdemultimedia/ffmpegthumbs'
arch=('x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kde-uninstall' 'kde-applications' 'kdemultimedia')
depends=('kdelibs' 'ffmpeg')
makedepends=('cmake' 'extra-cmake-modules')
options=('debug')
replaces=('ffmpegthumbs<=15.08.0-2')
conflics=('ffmpegthumbs<=15.08.0-2')
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
build() {
2015-08-20 03:25:41 +08:00
cd "${srcdir}"
mkdir build
cd build
cmake ../${_pkgname}-${pkgver} \
2015-08-20 03:25:41 +08:00
-DCMAKE_BUILD_TYPE=Release \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
2015-08-20 03:25:41 +08:00
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
}