wok annotate mpv/receipt @ rev 25173
updated python-ethtool (0.14 -> 0.15)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 01 17:05:43 2022 +0100 (2022-07-01) |
parents | c4618b9beef0 |
children | 7364ffdaaa60 |
rev | line source |
---|---|
psychomaniak@17703 | 1 # SliTaz package receipt. |
psychomaniak@17703 | 2 |
psychomaniak@17703 | 3 PACKAGE="mpv" |
Hans-G?nter@23194 | 4 VERSION="0.32.0" |
psychomaniak@17703 | 5 CATEGORY="multimedia" |
Hans-G?nter@21622 | 6 SHORT_DESC="Video player based on ffmpeg and mplayer2." |
Hans-G?nter@23194 | 7 MAINTAINER="maintainer@slitaz.org" |
psychomaniak@17703 | 8 LICENSE="GPL2" |
Hans-G?nter@21622 | 9 WEB_SITE="https://mpv.io" |
Hans-G?nter@21622 | 10 |
psychomaniak@17703 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
psychomaniak@17703 | 12 WGET_URL="https://github.com/mpv-player/mpv/archive/v$VERSION.tar.gz" |
Hans-G?nter@23194 | 13 |
pascal@19662 | 14 WAFTOOL="waf-1.8.12" |
pascal@19145 | 15 EXTRA_SOURCE_FILES="$WAFTOOL" |
psychomaniak@17703 | 16 |
Hans-G?nter@21622 | 17 DEPENDS="alsa-lib bzlib ffmpeg glib glibc-base gmp lame lcms libdrm \ |
Hans-G?nter@21622 | 18 libegl-mesa libjpeg liblzma libpng libsdl libtasn1 libtinfo \ |
Hans-G?nter@21622 | 19 libv4l libxcb libxml2 lua mesa nettle pcre udev xorg-libX11 \ |
Hans-G?nter@21622 | 20 xorg-libXau xorg-libXdamage xorg-libXdmcp xorg-libXext \ |
Hans-G?nter@21622 | 21 xorg-libXxf86vm xorg-libXfixes xorg-libXinerama \ |
Hans-G?nter@21622 | 22 xorg-libXrandr xorg-libXrender xorg-libXv zlib" |
Hans-G?nter@21622 | 23 BUILD_DEPENDS="alsa-lib-dev bzlib cacerts ffmpeg-compat-dev ffmpeg-dev \ |
Hans-G?nter@21622 | 24 file glib-dev glibc-dev gmp-dev jpeg-dev lame-dev lcms2-dev \ |
Hans-G?nter@21622 | 25 libdrm-dev libegl-mesa libguess liblzma-dev libpng-dev \ |
Hans-G?nter@21622 | 26 libsdl-dev libtasn1-dev libtinfo libv4l-dev libxcb-dev \ |
Hans-G?nter@21622 | 27 libxml2-dev mesa-dev nettle-dev openssl pcre-dev pkg-config \ |
Hans-G?nter@21622 | 28 udev-dev xorg-libX11-dev xorg-libXau-dev xorg-libXdamage-dev \ |
Hans-G?nter@21622 | 29 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev \ |
Hans-G?nter@21622 | 30 xorg-libXinerama-dev xorg-libXrandr-dev xorg-libXrender-dev \ |
Hans-G?nter@21622 | 31 xorg-libXv-dev xorg-libXxf86vm-dev yasm zlib-dev" |
psychomaniak@17703 | 32 |
pascal@24055 | 33 current_version() |
pascal@24055 | 34 { |
pascal@24055 | 35 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 36 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 37 } |
pascal@24055 | 38 |
psychomaniak@17703 | 39 # Rules to configure and make the package. |
psychomaniak@17703 | 40 compile_rules() |
psychomaniak@17703 | 41 { |
Hans-G?nter@23194 | 42 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] || |
Hans-G?nter@23194 | 43 wget -P $SOURCES_REPOSITORY \ |
pascal@19145 | 44 http://www.freehackers.org/~tnagy/release/$WAFTOOL |
pascal@19145 | 45 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf |
Hans-G?nter@23194 | 46 |
Hans-G?nter@23194 | 47 # ./bootstrap.py # needs python3 to fetch waf |
Hans-G?nter@23194 | 48 |
Hans-G?nter@21622 | 49 ./waf configure \ |
Hans-G?nter@21622 | 50 --prefix=/usr \ |
Hans-G?nter@21622 | 51 --confdir=/etc/mpv \ |
Hans-G?nter@21622 | 52 --disable-debug \ |
Hans-G?nter@21622 | 53 --disable-debug-build \ |
Hans-G?nter@21622 | 54 --disable-gl \ |
Hans-G?nter@23194 | 55 --disable-libass \ |
Hans-G?nter@21622 | 56 --disable-manpage-build \ |
Hans-G?nter@23194 | 57 --disable-oss-audio && |
Hans-G?nter@21622 | 58 ./waf build && |
psychomaniak@17703 | 59 ./waf install --destdir=$DESTDIR |
psychomaniak@17703 | 60 } |
psychomaniak@17703 | 61 |
psychomaniak@17703 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17703 | 63 genpkg_rules() |
psychomaniak@17703 | 64 { |
Hans-G?nter@21622 | 65 # mkdir $install/etc |
Hans-G?nter@21622 | 66 # mkdir $install/etc/mpv |
Hans-G?nter@21622 | 67 cp $WOK/$PACKAGE/source/$PACKAGE-$VERSION/etc/*.conf \ |
Hans-G?nter@23194 | 68 $install/etc/mpv |
Hans-G?nter@21622 | 69 cp -a $install/* $fs |
psychomaniak@17703 | 70 } |