wok annotate alpine/receipt @ rev 25491
Up foomatic-db-nonfree (20221116)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 17 12:13:24 2022 +0000 (23 months ago) |
parents | 180119c209e8 |
children | b81ceff0b056 |
rev | line source |
---|---|
paul@2337 | 1 # SliTaz package receipt. |
paul@2337 | 2 |
paul@2337 | 3 PACKAGE="alpine" |
pascal@25087 | 4 VERSION="2.26" |
paul@2337 | 5 CATEGORY="network" |
Hans-G?nter@22478 | 6 TAGS="mail client" |
paul@2337 | 7 SHORT_DESC="Fast, easy to use email client." |
paul@2337 | 8 MAINTAINER="paul@slitaz.org" |
pascal@15362 | 9 LICENSE="Apache" |
pascal@21440 | 10 WEB_SITE="https://repo.or.cz/alpine.git" |
Hans-G?nter@22478 | 11 |
pascal@25420 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@25420 | 13 WGET_URL="https://alpineapp.email/alpine/release/src/$TARBALL" |
Hans-G?nter@22478 | 14 |
Hans-G?nter@22478 | 15 DEPENDS="libssl ncurses pam" |
Hans-G?nter@22478 | 16 BUILD_DEPENDS="ncurses-dev openssl-dev pam-dev" |
Hans-G?nter@22478 | 17 |
pankso@16109 | 18 #HOST_ARCH="i486 arm" |
paul@2337 | 19 |
pascal@24373 | 20 # What is the latest version available today? |
pascal@24373 | 21 current_version() |
pascal@24373 | 22 { |
pascal@25420 | 23 wget -O - http://repo.or.cz/alpine.git/snapshot/ 2>/dev/null | \ |
pascal@25087 | 24 sed '/Release version/!d;s|.*version ||;s|<.*||;q' |
pascal@24373 | 25 } |
pascal@24373 | 26 |
paul@2337 | 27 # Rules to configure and make the package. |
paul@2337 | 28 compile_rules() |
paul@2337 | 29 { |
Hans-G?nter@22478 | 30 ./configure \ |
Hans-G?nter@22478 | 31 --without-tcl \ |
Hans-G?nter@22478 | 32 --without-ldap \ |
Hans-G?nter@22478 | 33 --without-krb5 \ |
paul@2337 | 34 $CONFIGURE_ARGS && |
Hans-G?nter@22478 | 35 make && |
Hans-G?nter@22478 | 36 make DESTDIR=$DESTDIR install |
paul@2337 | 37 } |
paul@2337 | 38 |
paul@2337 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@2337 | 40 genpkg_rules() |
paul@2337 | 41 { |
paul@2337 | 42 mkdir -p $fs/usr |
pascal@15362 | 43 cp -a $install/usr/bin $fs/usr |
paul@2337 | 44 } |
paul@4372 | 45 |
paul@4372 | 46 post_install() |
paul@4372 | 47 { |
paul@4372 | 48 # link old libldap libraries |
al@18667 | 49 cd "$1/usr/lib" |
paul@4372 | 50 ln -s liblber-2.4.so.2.4.2 liblber-2.3.so.0 |
paul@4377 | 51 ln -s libldap-2.4.so.2.4.2 libldap-2.3.so.0 |
paul@4372 | 52 } |
paul@4372 | 53 |
paul@4372 | 54 post_remove() |
paul@4372 | 55 { |
paul@4372 | 56 rm -f /usr/lib/liblber-2.3.so.0 |
paul@4377 | 57 rm -f /usr/lib/libldap-2.3.so.0 |
paul@4372 | 58 } |