wok-stable diff tk/receipt @ rev 1948

Add pam
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 28 22:31:23 2008 +0000 (2008-12-28)
parents
children 1d043f8c9982
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tk/receipt	Sun Dec 28 22:31:23 2008 +0000
     1.3 @@ -0,0 +1,46 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="tk"
     1.7 +VERSION="8.5.5"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="The TCL gui toolkit"
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +DEPENDS="tcl"
    1.12 +BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
    1.13 +SOURCE="tk"
    1.14 +TARBALL="${SOURCE}${VERSION}-src.tar.gz"
    1.15 +WEB_SITE="http://tcl.sourceforge.net/"
    1.16 +WGET_URL="http://surfnet.dl.sourceforge.net/sourceforge/tcl/$TARBALL"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	# Redefine TK source path
    1.22 +	src=${SOURCE}${VERSION}/unix
    1.23 +
    1.24 +	cd $src
    1.25 +	./configure --prefix=/usr \
    1.26 +	 --enable-threads \
    1.27 +	 --enable-shared  $CONFIGURE_ARGS &&
    1.28 +	make &&
    1.29 +	make DESTDIR=$PWD/_pkg install
    1.30 +}
    1.31 +
    1.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 +genpkg_rules()
    1.34 +{
    1.35 +	_pkg=${SOURCE}${VERSION}/unix/_pkg
    1.36 +	
    1.37 +	mkdir -p $fs/usr/lib
    1.38 +	cp -a $_pkg/usr/bin $fs/usr
    1.39 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.40 +	cp -a $_pkg/usr/lib/tk${VERSION%%.[0-9]} $fs/usr/lib
    1.41 +	
    1.42 +	cd $fs/usr/bin
    1.43 +	ln -s wish${VERSION%%.[0-9]} wish
    1.44 +}
    1.45 +
    1.46 +clean_wok()
    1.47 +{
    1.48 +	test -d tk* && rm -rf tk*
    1.49 +}