wok-current view alpine/receipt @ rev 4503

slitaz-loram*: extract by default
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 22 12:40:18 2009 +0100 (2009-11-22)
parents fb7729b0e508
children 698958d05d56
line source
1 # SliTaz package receipt.
3 PACKAGE="alpine"
4 VERSION="2.00"
5 CATEGORY="network"
6 SHORT_DESC="Fast, easy to use email client."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="openssl pam libldap cyrus-sasl ncurses krb5"
9 BUILD_DEPENDS="openssl-dev pam-dev openldap-dev cyrus-sasl-dev libldap krb5-dev"
10 TARBALL="$PACKAGE.tar.gz"
11 WEB_SITE="http://www.washington.edu/alpine/"
12 WGET_URL="ftp://ftp.cac.washington.edu/alpine/$TARBALL"
13 TAGS="mail client"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make && make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr
31 cp -a $_pkg/usr/bin $fs/usr
32 }
34 post_install()
35 {
36 # link old libldap libraries
37 echo -n "Linking libraries..."
38 cd $1/usr/lib
39 ln -s liblber-2.4.so.2.4.2 liblber-2.3.so.0
40 ln -s libldap-2.4.so.2.4.2 libldap-2.3.so.0
41 status
42 }
44 post_remove()
45 {
46 echo -n "Removing linked libraries..."
47 rm -f /usr/lib/liblber-2.3.so.0
48 rm -f /usr/lib/libldap-2.3.so.0
49 status
50 }