wok-6.x annotate xorg-xbitmaps/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 c1c20c23ad53
children
rev   line source
pankso@344 1 # SliTaz package receipt.
pankso@344 2
pankso@344 3 PACKAGE="xorg-xbitmaps"
Hans-G?nter@22249 4 VERSION="1.1.2"
pankso@344 5 CATEGORY="development"
Hans-G?nter@22249 6 SHORT_DESC="Development files for X (bitmaps)."
pankso@344 7 MAINTAINER="pankso@slitaz.org"
pascal@15579 8 LICENSE="MIT"
Hans-G?nter@22249 9 WEB_SITE="https://www.x.org/wiki/"
Hans-G?nter@22249 10
pankso@344 11 SOURCE="xbitmaps"
pankso@344 12 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@344 13 WGET_URL="$XORG_MIRROR/data/$TARBALL"
pankso@344 14
pascal@15579 15 DEPENDS="xorg-util-macros"
pascal@15579 16 BUILD_DEPENDS="xorg-util-macros"
pascal@15579 17
Hans-G?nter@22249 18 HOST_ARCH="i486 arm"
Hans-G?nter@22249 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@344 26 # Rules to configure and make the package.
pankso@344 27 compile_rules()
pankso@344 28 {
pankso@16109 29 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@22249 30 make &&
Hans-G?nter@22249 31 make install
pankso@344 32 }
pankso@344 33
pankso@344 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@344 35 genpkg_rules()
pankso@344 36 {
pascal@15579 37 cp -a $install/* $fs
pankso@344 38 }