wok-current view c-client/receipt @ rev 25701

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