summaryrefslogblamecommitdiff
path: root/user/ffmpegthumbs/APKBUILD
blob: 2fdb4f20396d9a44699df13538d02ec2b783c4fe (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                                                  
              








                                                                            
                                                                                                

         









                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                          
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=ffmpegthumbs
pkgver=19.12.2
pkgrel=0
pkgdesc="KDE video thumbnail system using FFmpeg"
url="https://www.KDE.org/"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev ffmpeg-dev kconfig-dev
	ki18n-dev kio-dev"
subpackages="$pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/ffmpegthumbs-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} .
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="9bf1d0db50d194f31f915ec2dfbd451428755ab574f2548c09c542db644034bd8a581dff5e492316b71451fca917b7ae56422b6f9efc058b88b8ed85b4d118f6  ffmpegthumbs-19.12.2.tar.xz"