wok annotate kino/receipt @ rev 24412
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 09 21:05:34 2022 +0000 (2022-02-09) |
parents | e6b7a2aaf2e1 |
children | d3556b8f5c3d |
rev | line source |
---|---|
pankso@296 | 1 # SliTaz package receipt. |
pankso@296 | 2 |
pankso@296 | 3 PACKAGE="kino" |
pankso@4085 | 4 VERSION="1.3.4" |
pankso@299 | 5 CATEGORY="multimedia" |
pankso@296 | 6 SHORT_DESC="Non linear Video editor." |
pankso@296 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@15000 | 9 SUGGESTED="lame vorbis-tools mjpegtools dvdauthor" |
pascal@15000 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@21252 | 11 WEB_SITE="https://web.archive.org/web/20171208061933/http://kinodv.org/" |
pascal@15000 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15000 | 13 TAGS="video editor" |
pascal@15000 | 14 |
pankso@4085 | 15 DEPENDS="gtk+ libglade libdv libraw1394 libavc1394 libsamplerate alsa-lib \ |
slaxemulator@8089 | 16 libiec61883 xorg-libXv linux-firewire xorg-libXdamage ffmpeg" |
pascal@8939 | 17 BUILD_DEPENDS="intltool libdv perl xorg-dev xorg-dev-proto gtk+-dev libglade-dev \ |
pankso@4085 | 18 libdv-dev libraw1394-dev libavc1394-dev libsamplerate-dev xorg-libXv-dev \ |
pankso@4085 | 19 libiec61883-dev libxml2-dev bash libpng-dev freetype-dev fontconfig-dev \ |
pankso@12481 | 20 libiec61883 ffmpeg-dev xorg-libXv libsamplerate util-linux-uuid-dev \ |
pascal@12987 | 21 alsa-lib xorg-libXext libv4l-dev" |
pankso@296 | 22 |
pascal@24412 | 23 # What is the latest version available today? |
pascal@24412 | 24 current_version() |
pascal@24412 | 25 { |
pascal@24412 | 26 wget -O - https://sourceforge.net/projects/kino/files/kino/ 2>/dev/null | \ |
pascal@24412 | 27 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24412 | 28 sed '/scope="row/!d;s|.*/kino/||;s|/.*||;q' |
pascal@24412 | 29 } |
pascal@24412 | 30 |
pankso@296 | 31 # Rules to configure and make the package. |
pankso@296 | 32 compile_rules() |
pankso@296 | 33 { |
pascal@12987 | 34 sed -i 's|linux/videodev.h|libv4l1-videodev.h|' \ |
pascal@12987 | 35 ffmpeg/libavdevice/v4l.c src/v4l.h |
pankso@296 | 36 ./configure \ |
pankso@296 | 37 --prefix=/usr \ |
pankso@296 | 38 --mandir=/usr/share/man \ |
pankso@296 | 39 --sysconfdir=/etc \ |
jozee@2911 | 40 --disable-local-ffmpeg \ |
jozee@2911 | 41 --enable-shared \ |
pankso@4347 | 42 --with-libdv-only \ |
pascal@1484 | 43 $CONFIGURE_ARGS && |
pascal@1484 | 44 make && |
pascal@15000 | 45 make DESTDIR=$DESTDIR install |
pankso@296 | 46 } |
pankso@296 | 47 |
pankso@296 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@296 | 49 genpkg_rules() |
pankso@296 | 50 { |
pascal@11623 | 51 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications |
pascal@15053 | 52 cp -a $stuff/applications/*desktop $fs/usr/share/applications |
pascal@15000 | 53 cp -a $install/etc $fs |
pascal@15000 | 54 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 55 cp -a $install/usr/lib $fs/usr |
pankso@296 | 56 rm $fs/usr/lib/kino-gtk2/*.*a |
pascal@15000 | 57 cp -a $install/usr/share/kino $fs/usr/share |
pankso@4085 | 58 |
pankso@4340 | 59 # Remove Help files |
jozee@2911 | 60 rm -rf $fs/usr/share/kino/help |
pankso@296 | 61 } |