wok view talloc/receipt @ rev 25539

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