wok annotate xorg-libXvMC/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents d974074ae821
children
rev   line source
pankso@448 1 # SliTaz package receipt.
pankso@448 2
pankso@448 3 PACKAGE="xorg-libXvMC"
Hans-G?nter@22231 4 VERSION="1.0.12"
pankso@448 5 CATEGORY="x-window"
pankso@448 6 SHORT_DESC="Xorg server module."
pankso@448 7 MAINTAINER="pankso@slitaz.org"
pascal@15579 8 LICENSE="MIT"
Hans-G?nter@22231 9 WEB_SITE="https://www.x.org/wiki/"
Hans-G?nter@22231 10
pankso@448 11 SOURCE="libXvMC"
gokhlayeh@6993 12 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@448 13 WGET_URL="$XORG_MIRROR/lib/$TARBALL"
pankso@448 14
pankso@12518 15 DEPENDS="xorg-libXv"
pankso@12518 16 BUILD_DEPENDS="xorg-libXv-dev"
pankso@12518 17
Hans-G?nter@22231 18 HOST_ARCH="i486 arm"
Hans-G?nter@22231 19
pascal@24072 20 current_version()
pascal@24072 21 {
pascal@24072 22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 23 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 24 }
pascal@24072 25
pankso@448 26 # Rules to configure and make the package.
pankso@448 27 compile_rules()
pankso@448 28 {
Hans-G?nter@22231 29 ./configure \
Hans-G?nter@22231 30 --sysconfdir=/etc \
Hans-G?nter@22231 31 --mandir=/usr/share/man \
Hans-G?nter@22231 32 --localstatedir=/var \
pankso@12518 33 $CONFIGURE_ARGS &&
Hans-G?nter@22231 34 make &&
Hans-G?nter@22231 35 make install
pankso@448 36 }
pankso@448 37
pankso@448 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@448 39 genpkg_rules()
pankso@448 40 {
pankso@448 41 mkdir -p $fs/usr/lib
pankso@12518 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@448 43 }