summaryrefslogtreecommitdiff
path: root/user/ffmpegthumbnailer
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-08-19 05:18:41 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-08-19 05:18:41 -0500
commit2edf0e9bbe87c609495f246c36bd451c155064dc (patch)
treea52dde7a34fef130ff8b40515e219f1b4d13aba6 /user/ffmpegthumbnailer
parentc6e2819b2d7c9831058ed58dfd9db46e62d5fa71 (diff)
downloadpackages-2edf0e9bbe87c609495f246c36bd451c155064dc.tar.gz
packages-2edf0e9bbe87c609495f246c36bd451c155064dc.tar.bz2
packages-2edf0e9bbe87c609495f246c36bd451c155064dc.tar.xz
packages-2edf0e9bbe87c609495f246c36bd451c155064dc.zip
user/ffmpegthumbnailer: new package
Diffstat (limited to 'user/ffmpegthumbnailer')
-rw-r--r--user/ffmpegthumbnailer/APKBUILD42
1 files changed, 42 insertions, 0 deletions
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 <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+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
+}
+