wok-next annotate ffmpegthumbnailer/receipt @ rev 20678

Up clisp (2.50)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 15 02:59:03 2018 +0300 (2018-05-15)
parents 346b104468cc
children d5aab818505e
rev   line source
al@19825 1 # SliTaz package receipt v2.
pascal@14379 2
pascal@14379 3 PACKAGE="ffmpegthumbnailer"
al@19825 4 VERSION="2.2.0"
al@14742 5 CATEGORY="system-tools"
al@19825 6 SHORT_DESC="Fast and lightweight video thumbnailer"
pascal@14379 7 MAINTAINER="al.bobylev@gmail.com"
pascal@14653 8 LICENSE="GPL2"
al@19825 9 WEB_SITE="https://github.com/dirkvdb/ffmpegthumbnailer"
pascal@14379 10
al@19825 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19825 12 WGET_URL="https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/$VERSION/$TARBALL"
al@19825 13
al@19825 14 BUILD_DEPENDS="cmake libjpeg-turbo-dev zlib-dev libpng16-dev ffmpeg-dev"
al@19825 15 SPLIT="ffmpegthumbnailer-dev"
pascal@14379 16
pascal@14379 17 # Rules to configure and make the package.
pascal@14379 18 compile_rules()
pascal@14379 19 {
al@19825 20 mkdir build; cd build
al@19825 21 cmake \
al@19825 22 -DCMAKE_INSTALL_PREFIX=/usr \
al@19825 23 -DCMAKE_BUILD_TYPE=Release \
al@19825 24 -DENABLE_GIO=ON \
al@19825 25 -DENABLE_THUMBNAILER=ON \
al@19825 26 .. &&
pascal@14379 27 make &&
al@19825 28 make install &&
al@19825 29
al@19825 30 addtypes="video/x-ms-asx;video/x-ms-wmx;video/x-ms-wvx;application/mxf;\vid\
al@19825 31 eo/3gp;video/3gpp;video/dv;video/divx;video/fli;video/flv;video/mp2t;video/mp4v\
al@19825 32 -es;video/msvideo;video/ogg;video/vivo;video/vnd.divx;video/vnd.mpegurl;video/v\
al@19825 33 nd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;\
al@19825 34 video/x-fli;video/x-flic;video/x-m4v;video/x-mpeg;video/x-mpeg2;video/x-nsv;vid\
al@19825 35 eo/x-ogm+ogg;video/x-theora+ogg;" &&
al@19825 36 sed -i "/MimeType=/ s|\$|$addtypes|" \
al@19825 37 $install/usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer
pascal@14379 38 }
pascal@14379 39
pascal@14379 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14379 41 genpkg_rules()
pascal@14379 42 {
al@19825 43 case $PACKAGE in
al@19825 44 ffmpegthumbnailer)
al@19825 45 copy @std
al@19825 46 DEPENDS="ffmpeg libjpeg-turbo libpng16 zlib"
al@19825 47 ;;
al@19825 48 *-dev)
al@19825 49 copy @dev
al@19825 50 DEPENDS="ffmpegthumbnailer ffmpeg-dev"
al@19825 51 ;;
al@19825 52 esac
pascal@14379 53 }