wok-current annotate c-client/receipt @ rev 25629
Mass updates for current
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Oct 11 18:45:46 2023 +0000 (13 months ago) |
parents | 41a539cfe5f8 |
children |
rev | line source |
---|---|
pascal@1322 | 1 # SliTaz package receipt. |
pascal@1322 | 2 |
pascal@1322 | 3 PACKAGE="c-client" |
slaxemulator@11074 | 4 VERSION="2007f" |
pascal@1322 | 5 CATEGORY="development" |
pascal@1322 | 6 SHORT_DESC="mail store formats support." |
pascal@1322 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="Apache" |
pascal@25420 | 9 WEB_SITE="https://alpineapp.email/" |
pascal@1322 | 10 SOURCE="imap" |
slaxemulator@11074 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
shann@25629 | 12 #WGET_URL="https://ftp.icm.edu.pl/packages/$SOURCE/$TARBALL" |
shann@25629 | 13 WGET_URL="https://www.mirrorservice.org/sites/ftp.cac.washington.edu/imap/$TARBALL" |
al@14789 | 14 TAGS="imap pop3 smtp" |
al@14789 | 15 |
pascal@1322 | 16 BUILD_DEPENDS="openssl-dev" |
pascal@1322 | 17 |
pascal@24759 | 18 # What is the latest version available today? |
pascal@24759 | 19 current_version() |
pascal@24759 | 20 { |
pascal@24759 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24759 | 22 sed '/Latest Release/!d;s|.*ersion ||;s|<.*||;q' |
pascal@24759 | 23 } |
pascal@24759 | 24 |
pascal@1322 | 25 # Rules to configure and make the package. |
pascal@1322 | 26 compile_rules() |
pascal@1322 | 27 { |
pascal@1322 | 28 cd $src |
shann@25629 | 29 |
shann@25629 | 30 # Patch for openssl 1.1.x support |
shann@25629 | 31 # see https://gitweb.gentoo.org/repo/gentoo.git/tree/net-libs/c-client |
shann@25629 | 32 patch -p1 -i $stuff/c-client-2007f-openssl-1.1.patch |
shann@25629 | 33 |
shann@25629 | 34 sed \ |
shann@25629 | 35 -e "s:-g -fno-omit-frame-pointer -O6:\${CFLAGS}:" \ |
shann@25629 | 36 -e "s:SSLDIR=/usr/local/ssl:SSLDIR=/usr:" \ |
shann@25629 | 37 -e "s:SSLCERTS=\$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:" \ |
shann@25629 | 38 -i src/osdep/unix/Makefile |
shann@25629 | 39 |
pascal@1322 | 40 make slx |
shann@25629 | 41 |
slaxemulator@11074 | 42 mkdir -p $DESTDIR/usr/include/c-client $DESTDIR/usr/lib |
pascal@24064 | 43 cp src/c-client/*.h c-client/linkage.? c-client/osdep.h c-client/env_unix.h \ |
al@14789 | 44 $DESTDIR/usr/include/c-client |
slaxemulator@11074 | 45 cp c-client/c-client.a $DESTDIR/usr/lib |
pascal@1322 | 46 } |
pascal@1322 | 47 |
pascal@1322 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1322 | 49 genpkg_rules() |
pascal@1322 | 50 { |
al@14789 | 51 cp -a $install/* $fs |
al@14789 | 52 chown -R root:root $fs |
pascal@1322 | 53 } |