wok diff acl/receipt @ rev 15628

vlc, weechat, xorg-libXpm, xorg-libXmu, xorg-libXaw: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 09 07:45:53 2013 +0000 (2013-12-09)
parents 2b8af769d8a8
children 7e1257627587
line diff
     1.1 --- a/acl/receipt	Fri Apr 20 07:51:46 2012 +0200
     1.2 +++ b/acl/receipt	Mon Dec 09 07:45:53 2013 +0000
     1.3 @@ -5,34 +5,47 @@
     1.4  CATEGORY="system-tools"
     1.5  SHORT_DESC="Commands for Manipulating POSIX Access Control Lists."
     1.6  MAINTAINER="rcx@zoominternet.net"
     1.7 -DEPENDS="glibc-base attr"
     1.8 -BUILD_DEPENDS="autoconf automake m4 libtool gettext attr-dev attr bash"
     1.9 -TARBALL="${PACKAGE}-${VERSION}.src.tar.gz"
    1.10 +LICENSE="LGPL2.1 GPL2"
    1.11  WEB_SITE="http://savannah.nongnu.org/projects/acl/"
    1.12 -WGET_URL="http://nongnu.askapache.com/$PACKAGE/$TARBALL"
    1.13 +TARBALL="$PACKAGE-$VERSION.src.tar.gz"
    1.14 +WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
    1.15 +
    1.16 +DEPENDS="attr glibc-base"
    1.17 +BUILD_DEPENDS="attr-dev bash libtool"
    1.18  
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {
    1.22 -	cd $src
    1.23 -
    1.24 -	# Need bash sh to compile
    1.25 +	# Need bash as /bin/sh to compile
    1.26  	mv /bin/sh /bin/sh.bak
    1.27  	ln -s /bin/bash /bin/sh
    1.28  
    1.29 -	# Configure is included in Makefile
    1.30 -	{ make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" &&
    1.31 -	make install install-lib install-dev DIST_ROOT=$DESTDIR
    1.32 -	} || { mv -f /bin/sh.bak /bin/sh; return 1; }
    1.33 +	{
    1.34 +		INSTALL_USER=root  \
    1.35 +		INSTALL_GROUP=root \
    1.36 +		./configure \
    1.37 +			--prefix=/usr \
    1.38 +			--libdir=/lib \
    1.39 +			--libexecdir=/usr/lib \
    1.40 +			$CONFIGURE_ARGS &&
    1.41 +		make &&
    1.42 +		DIST_ROOT=$DESTDIR \
    1.43 +		make install install-lib install-dev
    1.44 +	} || {
    1.45 +		mv -f /bin/sh.bak /bin/sh; return 1
    1.46 +	}
    1.47  
    1.48  	mv -f /bin/sh.bak /bin/sh
    1.49 +	# .so and .la files must be executable
    1.50 +	find $install -type f -name '*.[sl][oa]*' -exec chmod a+x \{\} \;
    1.51 +	sed -i "s|libdir='/lib'|libdir='/usr/lib'|" $install/usr/lib/libacl.la
    1.52  }
    1.53  
    1.54  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.55  genpkg_rules()
    1.56  {
    1.57  	mkdir -p $fs/lib $fs/usr/lib
    1.58 -	cp -a $_pkg/lib/*.so* $fs/lib
    1.59 -	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.60 -	cp -a $_pkg/usr/bin $fs/usr
    1.61 +	cp -a $install/lib/*.so* $fs/lib
    1.62 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.63 +	cp -a $install/usr/bin $fs/usr
    1.64  }