From 2edf0e9bbe87c609495f246c36bd451c155064dc Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Sun, 19 Aug 2018 05:18:41 -0500 Subject: user/ffmpegthumbnailer: new package --- user/ffmpegthumbnailer/APKBUILD | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 user/ffmpegthumbnailer/APKBUILD (limited to 'user/ffmpegthumbnailer/APKBUILD') diff --git a/user/ffmpegthumbnailer/APKBUILD b/user/ffmpegthumbnailer/APKBUILD new file mode 100644 index 000000000..ae8a1c7e0 --- /dev/null +++ b/user/ffmpegthumbnailer/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Kiyoshi Aman +# Maintainer: Kiyoshi Aman +pkgname=ffmpegthumbnailer +pkgver=2.2.0 +pkgrel=0 +pkgdesc="Thumbnail generator based on FFMPEG" +url="https://github.com/dirkvdb/ffmpegthumbnailer" +arch="all" +license="GPL-2.0+" +makedepends="ffmpeg-dev libjpeg-turbo-dev libpng-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/$pkgver/ffmpegthumbnailer-$pkgver.tar.bz2" +sha512sums="526d15b2c754fcb1415e69fb54cb6e7d0102b6d73a32a7e8528df81e32633dfe3786898984fdb988c93daee7218956c75c096ef657c9b3a42399d2d1d27c7bbf ffmpegthumbnailer-2.2.0.tar.bz2" + +build() { + cd "$builddir" + 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" \ + -DENABLE_GIO=True \ + -DENABLE_THUMBNAILER=True \ + ${CMAKE_CROSSOPTS} + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + -- cgit v1.2.3-70-g09d2