opt/libc-client/Pkgfile

33 lines
1.0 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: University of Washington's IMAP/mail c-client library
# URL: http://www.washington.edu/imap/
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2006-02-23 16:26:10 +01:00
# Depends on: openssl
name=libc-client
2011-07-23 15:34:00 +02:00
version=2007f
2006-02-23 16:26:10 +01:00
release=1
2008-12-20 16:42:40 +01:00
source=(ftp://ftp.cac.washington.edu/imap/imap-$version.tar.gz)
2006-02-23 16:26:10 +01:00
build () {
2008-03-16 11:23:29 +01:00
cd imap-${version::5}
2007-11-18 09:42:57 +01:00
sed -i 's/read x/x=y/' Makefile
2006-02-23 16:26:10 +01:00
echo y | make slx EXTRACFLAGS="$CFLAGS" \
SSLTYPE=unix \
SSLDIR=/usr \
SSLCERTS=/etc/ssl/certs \
IP=6
cd c-client
gcc -Wl,-soname,$name.so.1 -shared -fPIC -o $name.so.1.0.0 *.o
2007-11-18 09:42:57 +01:00
2006-02-23 16:26:10 +01:00
install -d $PKG/usr/{lib,include/c-client}
2007-11-18 09:42:57 +01:00
2006-02-23 16:26:10 +01:00
install -m 644 c-client.a $PKG/usr/lib/$name.a
install -m 755 $name.so.1.0.0 $PKG/usr/lib
ln -s $name.so.1.0.0 $PKG/usr/lib/$name.so.1
ln -s $name.so.1.0.0 $PKG/usr/lib/$name.so
2007-11-18 09:42:57 +01:00
2006-02-23 16:26:10 +01:00
install -m 644 *.h $PKG/usr/include/c-client
install -m 644 linkage.c $PKG/usr/include/c-client
rm $PKG/usr/include/c-client/os_*.h
}