wok-next view ffmpegthumbnailer/receipt @ rev 21351
updated faad2 (2.8.8 -> 2.9.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 10 07:14:21 2020 +0100 (2020-04-10) |
parents | d5aab818505e |
children | 6e1823092966 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ffmpegthumbnailer"
4 VERSION="2.2.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fast and lightweight video thumbnailer"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/dirkvdb/ffmpegthumbnailer"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/$VERSION/$TARBALL"
14 BUILD_DEPENDS="cmake libjpeg-turbo-dev zlib-dev libpng-dev ffmpeg-dev"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 mkdir build
19 cd build
20 cmake \
21 -DCMAKE_INSTALL_PREFIX=/usr \
22 -DCMAKE_BUILD_TYPE=Release \
23 -DENABLE_GIO=ON \
24 -DENABLE_THUMBNAILER=ON \
25 .. &&
26 make &&
27 make install || return 1
29 addtypes="video/x-ms-asx;video/x-ms-wmx;video/x-ms-wvx;application/mxf;\vid\
30 eo/3gp;video/3gpp;video/dv;video/divx;video/fli;video/flv;video/mp2t;video/mp4v\
31 -es;video/msvideo;video/ogg;video/vivo;video/vnd.divx;video/vnd.mpegurl;video/v\
32 nd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;\
33 video/x-fli;video/x-flic;video/x-m4v;video/x-mpeg;video/x-mpeg2;video/x-nsv;vid\
34 eo/x-ogm+ogg;video/x-theora+ogg;"
35 sed -i "/MimeType=/ s|\$|$addtypes|" \
36 $install/usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 ffmpegthumbnailer)
42 copy @std
43 DEPENDS="ffmpeg libjpeg-turbo libpng zlib"
44 ;;
45 *-dev)
46 copy @dev
47 DEPENDS="ffmpegthumbnailer ffmpeg-dev"
48 ;;
49 esac
50 }