wok view acl/receipt @ rev 20127

Replace s/libtool/libltdl/ in deps, libtool is build_dep.
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Oct 15 18:03:00 2017 +0200 (2017-10-15)
parents 45507bfb2b0d
children 8f88211c5cb8
line source
1 # SliTaz package receipt.
3 PACKAGE="acl"
4 VERSION="2.2.51"
5 CATEGORY="system-tools"
6 SHORT_DESC="Commands for Manipulating POSIX Access Control Lists."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="LGPL2.1 GPL2"
9 WEB_SITE="http://savannah.nongnu.org/projects/acl/"
10 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
11 WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="attr"
15 BUILD_DEPENDS="attr-dev bash libtool"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="attr-dev" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Need bash as /bin/sh to compile
26 mv /bin/sh /bin/sh.bak
27 ln -s /bin/bash /bin/sh
29 {
30 INSTALL_USER=root \
31 INSTALL_GROUP=root \
32 ./configure \
33 --prefix=/usr \
34 --libdir=/lib \
35 --libexecdir=/usr/lib \
36 $CONFIGURE_ARGS &&
37 make &&
38 DIST_ROOT=$DESTDIR \
39 make install install-lib install-dev
40 } || {
41 mv -f /bin/sh.bak /bin/sh; return 1
42 }
44 mv -f /bin/sh.bak /bin/sh
45 # .so and .la files must be executable
46 find $install -type f -name '*.[sl][oa]*' -exec chmod a+x \{\} \;
47 sed -i "s|libdir='/lib'|libdir='/usr/lib'|" $install/usr/lib/libacl.la
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/lib $fs/usr/lib
54 cp -a $install/lib/*.so* $fs/lib
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
56 cp -a $install/usr/bin $fs/usr
57 }