wok-6.x annotate mediainfo-gui/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | a72a832af45d |
children | e717a4953b0e |
rev | line source |
---|---|
al@18630 | 1 # SliTaz package receipt. |
al@18630 | 2 |
al@18630 | 3 PACKAGE="mediainfo-gui" |
Hans-G?nter@23170 | 4 VERSION="19.09" |
al@18630 | 5 CATEGORY="utilities" |
Hans-G?nter@21427 | 6 SHORT_DESC="Unified display of the technical and tag data for media files." |
al@18630 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@18630 | 8 LICENSE="BSD" |
Hans-G?nter@21427 | 9 WEB_SITE="https://mediaarea.net/MediaInfo" |
Hans-G?nter@21427 | 10 |
al@18630 | 11 TARBALL="MediaInfo_GUI_${VERSION}_GNU_FromSource.tar.xz" |
al@18630 | 12 WGET_URL="http://mediaarea.net/download/binary/$PACKAGE/$VERSION/$TARBALL" |
al@18630 | 13 |
Hans-G?nter@21427 | 14 DEPENDS="gtk+ wxWidgets" |
Hans-G?nter@21427 | 15 BUILD_DEPENDS="file wxWidgets-dev" |
al@18630 | 16 |
pascal@24453 | 17 # What is the latest version available today? |
pascal@24453 | 18 current_version() |
pascal@24453 | 19 { |
pascal@24453 | 20 wget -O - https://mediaarea.net/en/MediaInfo/Download/Source 2> /dev/null | \ |
pascal@24453 | 21 sed '/\/mediainfo-gui\//!d;s|.*mediainfo-gui/||;s|/.*||;q' |
pascal@24453 | 22 } |
pascal@24453 | 23 |
al@18630 | 24 # Rules to configure and make the package. |
al@18630 | 25 compile_rules() |
al@18630 | 26 { |
al@18630 | 27 ./GUI_Compile.sh |
Hans-G?nter@21427 | 28 cd MediaInfo/Project/GNU/GUI |
Hans-G?nter@21427 | 29 make DESTDIR=$install install |
al@18630 | 30 |
al@18630 | 31 mkdir -p $install/usr/share/applications |
al@18630 | 32 cp -a $src/MediaInfo/Project/GNU/GUI/mediainfo-gui.desktop \ |
al@18630 | 33 $install/usr/share/applications |
al@18630 | 34 } |
al@18630 | 35 |
al@18630 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18630 | 37 genpkg_rules() |
al@18630 | 38 { |
Hans-G?nter@23170 | 39 cp -a $install/* $fs |
al@18630 | 40 } |