wok-next view ffmpegthumbnailer/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents 5669e8b3be70
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ffmpegthumbnailer"
4 VERSION="2.2.2"
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 ffmpeg-dev libjpeg-turbo-dev libpng-dev zlib-dev"
15 SPLIT="$PACKAGE-dev"
17 compile_rules()
18 {
19 mkdir build
20 cd build
21 cmake .. \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 -DCMAKE_BUILD_TYPE=Release \
24 -DENABLE_GIO=ON \
25 -DENABLE_THUMBNAILER=ON &&
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;"
36 sed -i "/MimeType=/ s|\$|$addtypes|" \
37 $install/usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer
38 }
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 ffmpegthumbnailer)
44 copy @std
45 DEPENDS="ffmpeg libjpeg-turbo libpng zlib"
46 ;;
47 *-dev)
48 copy @dev
49 DEPENDS="ffmpeg-dev ffmpegthumbnailer"
50 ;;
51 esac
52 }