wok annotate talloc/receipt @ rev 24533

updated f3 (7.2 -> 8.0)
author Hans-G?nter Theisgen
date Wed Feb 23 11:14:10 2022 +0100 (2022-02-23)
parents 6135577f4d08
children
rev   line source
gokhlayeh@6993 1 # SliTaz package receipt.
gokhlayeh@6993 2
gokhlayeh@6993 3 PACKAGE="talloc"
slaxemulator@13267 4 VERSION="2.0.7"
gokhlayeh@6993 5 CATEGORY="system-tools"
gokhlayeh@6993 6 SHORT_DESC="Hierarchical pool based memory allocator with destructors."
slaxemulator@13267 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15600 8 LICENSE="LGPL"
gokhlayeh@6993 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20679 10 WEB_SITE="https://talloc.samba.org/talloc/doc/html/index.html"
gokhlayeh@6993 11 WGET_URL="http://samba.org/ftp/$PACKAGE/$TARBALL"
pankso@10362 12 CROSS="bug: must use --cross-compile and --cross-execute="
gokhlayeh@6993 13
pascal@15600 14 DEPENDS="glibc-base"
pascal@15600 15 BUILD_DEPENDS="python-dev"
pascal@15600 16
pascal@24462 17 # What is the latest version available today?
pascal@24462 18 current_version()
pascal@24462 19 {
pascal@24462 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24462 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24462 22 }
pascal@24462 23
gokhlayeh@6993 24 # Rules to configure and make the package.
gokhlayeh@6993 25 compile_rules()
gokhlayeh@6993 26 {
gokhlayeh@6993 27 cd $src
gokhlayeh@6993 28 ./configure \
gokhlayeh@6993 29 --prefix=/usr \
gokhlayeh@6993 30 --enable-talloc-compat1 \
pankso@10362 31 --hostcc=$HOST_SYSTEM &&
gokhlayeh@11574 32 make $MAKEFLAGS &&
slaxemulator@13267 33 make DESTDIR=$DESTDIR install
gokhlayeh@6993 34 }
gokhlayeh@6993 35
gokhlayeh@6993 36 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@6993 37 genpkg_rules()
gokhlayeh@6993 38 {
gokhlayeh@6993 39 mkdir -p $fs/usr/lib
slaxemulator@13267 40 cp -a $install/usr/lib/libtalloc*.so* $fs/usr/lib/
slaxemulator@9396 41 ln -sf /usr/lib/libtalloc.so.$VERSION $fs/usr/lib/libtalloc.so.2
slaxemulator@9396 42 ln -sf /usr/lib/libtalloc-compat1-$VERSION.so $fs/usr/lib/libtalloc.so.1
gokhlayeh@6993 43 }