wok annotate mps-youtube/receipt @ rev 24757

pkg-config: cheat configure
author Hans-G?nter Theisgen
date Fri Mar 18 06:53:58 2022 +0100 (2022-03-18)
parents 240fb3120638
children 7364ffdaaa60
rev   line source
pascal@18680 1 # SliTaz package receipt.
pascal@18680 2
pascal@18680 3 PACKAGE="mps-youtube"
Hans-G?nter@21484 4 VERSION="0.2.8"
pascal@18680 5 CATEGORY="network"
pascal@18680 6 SHORT_DESC="Terminal based YouTube player and downloader."
pascal@18680 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18680 8 LICENSE="GPL3"
Hans-G?nter@21484 9 WEB_SITE="https://github.com/mps-youtube/mps-youtube"
Hans-G?nter@21484 10
pascal@18680 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18680 12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@18680 13
Hans-G?nter@21484 14 DEPENDS="mplayer py3k"
pascal@21580 15 BUILD_DEPENDS="py3k python-setuptools"
pascal@18680 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@18680 23 # Rules to configure and make the package.
pascal@18680 24 compile_rules()
pascal@18680 25 {
Hans-G?nter@21484 26 python3 setup.py build
Hans-G?nter@21484 27 python3 setup.py install --root=$DESTDIR
pascal@18680 28 }
pascal@18680 29
pascal@18680 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18680 31 genpkg_rules()
pascal@18680 32 {
pascal@18680 33 cp -a $install/usr $fs
pascal@18680 34 }