wok-next diff nail/receipt @ rev 20844

Add amiwm, tklauncher (thanks Pasquale Frega), tcl2c.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jun 22 20:40:27 2018 +0300 (2018-06-22)
parents 9e01bc6321ea
children d5aab818505e
line diff
     1.1 --- a/nail/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/nail/receipt	Fri Jun 22 20:40:27 2018 +0300
     1.3 @@ -1,51 +1,41 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="nail"
     1.8  VERSION="12.4"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Text mode mail user agent."
    1.11 +SHORT_DESC="Text mode mail user agent"
    1.12  MAINTAINER="sygne@ombres.eu"
    1.13  LICENSE="BSD"
    1.14 -SOURCE="mailx"
    1.15 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.16  WEB_SITE="http://heirloom.sourceforge.net/mailx.html"
    1.17 +
    1.18 +TARBALL="mailx-$VERSION.tar.bz2"
    1.19  WGET_URL="$SF_MIRROR/heirloom/$TARBALL"
    1.20 -CONFIG_FILES="/etc/nailrc"
    1.21 -TAGS="email imap pop3"
    1.22  
    1.23 -DEPENDS="openssl"
    1.24  BUILD_DEPENDS="openssl-dev"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 -	cd $src
    1.30 +compile_rules() {
    1.31  	sed -i 's/static int smime/#define STACK STACK_OF(X509_NAME)\n&/' openssl.c
    1.32  
    1.33 -	# avoid compiling with kerberos authentification:	
    1.34 +	# avoid compiling with kerberos authentification:
    1.35  	make config.h
    1.36  	sed -i -e "/GSSAPI/d" config.h
    1.37  	sed -i -e "/gssapi/d" config.h
    1.38  	sed -i -e "s/-lgssapi_krb5//g" LIBS
    1.39 -	
    1.40 -	make install UCBINSTALL=/usr/bin/install \
    1.41 -	DESTDIR=$DESTDIR PREFIX=/usr	
    1.42 +
    1.43 +	make install UCBINSTALL=/usr/bin/install DESTDIR=$DESTDIR PREFIX=/usr || return 1
    1.44 +
    1.45 +	mv $install/usr/bin/mailx $install/usr/bin/nail
    1.46  }
    1.47  
    1.48 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.49 -genpkg_rules()
    1.50 -{
    1.51 -	mkdir -p $fs/usr
    1.52 -	cp -r $install/usr/bin $fs/usr
    1.53 -	mv $fs/usr/bin/mailx $fs/usr/bin/nail
    1.54 -	
    1.55 -	cp -r $install/etc $fs
    1.56 +genpkg_rules() {
    1.57 +	copy @std
    1.58 +	DEPENDS="openssl"
    1.59 +	CONFIG_FILES="/etc/nailrc"
    1.60 +	TAGS="email imap pop3"
    1.61  }
    1.62  
    1.63 -# Post install commands for Tazpkg.
    1.64  # Check mailx
    1.65 -post_install()
    1.66 -{
    1.67 +post_install() {
    1.68  	. "$1/etc/init.d/rc.functions"
    1.69  
    1.70  	if [ -e "$1/usr/bin/mailx" ]; then
    1.71 @@ -65,7 +55,7 @@
    1.72  			echo ""
    1.73  		fi
    1.74  	else
    1.75 -		echo -n "linking /usr/bin/mailx to /usr/bin/nail"
    1.76 +		action "linking /usr/bin/mailx to /usr/bin/nail"
    1.77  		ln -s /usr/bin/nail "$1/usr/bin/mailx"
    1.78  		status
    1.79  	fi