wok-next annotate mpv/receipt @ rev 21041

Follow HTTP redirections for homepages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 09 13:21:03 2018 +0200 (2018-11-09)
parents d5aab818505e
children 5669e8b3be70
rev   line source
psychomaniak@17703 1 # SliTaz package receipt.
psychomaniak@17703 2
psychomaniak@17703 3 PACKAGE="mpv"
psychomaniak@17703 4 VERSION="0.8.2"
psychomaniak@17703 5 CATEGORY="multimedia"
psychomaniak@17703 6 SHORT_DESC="Video player based on ffmpeg & mplayer2"
psychomaniak@17703 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@17703 8 LICENSE="GPL2"
al@21041 9 WEB_SITE="https://mpv.io/"
al@21020 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"
pascal@19145 13 EXTRA_SOURCE_FILES="$WAFTOOL"
psychomaniak@17703 14
al@21020 15 BUILD_DEPENDS="xorg-dev xorg-libXv-dev xorg-libXScrnSaver-dev lua-dev \
al@21020 16 ffmpeg-dev enca-dev fribidi-dev libass-dev alsa-lib-dev"
psychomaniak@17703 17
al@21020 18 compile_rules() {
al@21020 19 WAFTOOL="waf-1.8.4"
al@21020 20
al@20513 21 [ -s $SRC/$WAFTOOL ] || wget -P $SRC \
pascal@19145 22 http://www.freehackers.org/~tnagy/release/$WAFTOOL
al@20513 23 install -m 755 $SRC/$WAFTOOL waf
al@21020 24
psychomaniak@17703 25 ./bootstrap.py
psychomaniak@17703 26 ./waf configure \
psychomaniak@17703 27 --prefix=/usr \
psychomaniak@17704 28 --confdir=/etc/mpv
psychomaniak@17704 29 # --enable-libmpv-shared
psychomaniak@17703 30 ./waf build
al@21020 31 ./waf install --destdir=$install
psychomaniak@17703 32 }
psychomaniak@17703 33
al@21020 34 genpkg_rules() {
psychomaniak@17703 35 cp -a $install/* $fs
al@21020 36 DEPENDS="xorg-server xorg-libXv xorg-libXinerama xorg-libXScrnSaver \
al@21020 37 util-linux-uuid alsa-lib enca fribidi libass lua ffmpeg"
psychomaniak@17703 38 }