wok-6.x annotate libsexy/receipt @ rev 25118

Use https://download.tuxfamily.org/ for some broken wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 25 16:14:50 2022 +0000 (2022-06-25)
parents eeba7ab1dffe
children 73f36875e5a7
rev   line source
pankso@877 1 # SliTaz package receipt.
pankso@877 2
pankso@877 3 PACKAGE="libsexy"
pankso@877 4 VERSION="0.1.11"
pankso@877 5 CATEGORY="x-window"
pankso@877 6 SHORT_DESC="Sexy widgests for GTK+."
pankso@877 7 MAINTAINER="pankso@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
slaxemulator@7091 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20674 10 WEB_SITE="https://blog.chipx86.com/tag/libsexy/"
pankso@877 11 WGET_URL="http://releases.chipx86.com/libsexy/libsexy/$TARBALL"
pankso@16268 12 HOST_ARCH="i486 arm"
pankso@877 13
pascal@14718 14 DEPENDS="gtk+ xorg-libXdamage"
pascal@14718 15 BUILD_DEPENDS="pkg-config gtk+-dev xorg-xproto libxml2-dev"
pascal@14718 16
pascal@24447 17 # What is the latest version available today?
pascal@24447 18 current_version()
pascal@24447 19 {
pascal@24447 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24447 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24447 22 }
pascal@24447 23
pankso@877 24 # Rules to configure and make the package.
pankso@877 25 compile_rules()
pankso@877 26 {
pankso@877 27 ./configure \
pascal@1481 28 $CONFIGURE_ARGS &&
pankso@16268 29 make && make install
pankso@877 30 }
pankso@877 31
pankso@877 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@877 33 genpkg_rules()
pankso@877 34 {
pankso@877 35 mkdir -p $fs/usr/lib
pascal@14718 36 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@877 37 }