wok-6.x annotate dhid/receipt @ rev 24525

Up libav (0.6.6 -> 12.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 22 16:15:28 2022 +0000 (2022-02-22)
parents 429355d87af5
children bc2b9d9bed6f
rev   line source
pankso@16505 1 # SliTaz package receipt.
pankso@16505 2
pankso@16505 3 PACKAGE="dhid"
pankso@16505 4 VERSION="5.5"
pankso@16505 5 CATEGORY="network"
pankso@16505 6 SHORT_DESC="Open source Dynamic IP Updater."
pankso@16505 7 MAINTAINER="pankso@slitaz.org"
pankso@16505 8 LICENSE="BSD"
pankso@16505 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@16505 10 WEB_SITE="http://dhis.org"
pankso@16505 11 WGET_URL="ftp://ftp.dhis.org/pub/dhis/$TARBALL"
pankso@16505 12 CONFIG_FILES="/etc/dhid.conf"
pankso@16505 13 HOST_ARCH="i486 arm"
pankso@16505 14
pankso@16505 15 DEPENDS="gmp"
pankso@16505 16 BUILD_DEPENDS="gmp-dev"
pankso@16505 17
pascal@24439 18 # What is the latest version available today?
pascal@24439 19 current_version()
pascal@24439 20 {
pascal@24439 21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24439 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24439 23 }
pascal@24439 24
pankso@16505 25 # Handle cross comilation
pankso@16505 26 case "$ARCH" in
pankso@16505 27 arm) ARCH_FLAGS=" LFLAGS=-L/cross/$ARCH/sysroot/usr/lib" ;;
pankso@16505 28 esac
pankso@16505 29
pankso@16505 30 # Rules to configure and make the package.
pankso@16505 31 compile_rules()
pankso@16505 32 {
pankso@16505 33 make CC=${HOST_SYSTEM}-gcc ${ARCH_FLAGS}
pankso@16505 34 }
pankso@16505 35
pankso@16505 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16505 37 genpkg_rules()
pankso@16505 38 {
pankso@16505 39 mkdir -p $fs/usr/sbin $fs/etc $fs/usr/share/doc/dhid
pankso@16505 40 cp ${src}/dhid.conf.sample ${fs}/etc/dhid.conf
pankso@16505 41 cp ${src}/README ${fs}/usr/share/doc/dhid
pankso@16505 42 cp -a ${src}/dhid ${fs}/usr/sbin
pankso@16505 43 cp -a ${stuff}/init.d ${fs}/etc
pankso@16505 44 }
pankso@16505 45