summaryrefslogtreecommitdiff
path: root/libc-client/Pkgfile
blob: 0fca1d740a3f97cda5a0fee720f0b2718c604e27 (plain)
    1 # Description: University of Washington's IMAP/mail c-client library
    2 # URL:         http://www.washington.edu/imap/
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  openssl
    5 
    6 name=libc-client
    7 version=2007f
    8 release=1
    9 source=(ftp://ftp.cac.washington.edu/imap/imap-$version.tar.gz)
   10 
   11 build () {
   12     cd imap-${version::5}
   13     sed -i 's/read x/x=y/' Makefile
   14     echo y | make slx EXTRACFLAGS="$CFLAGS" \
   15                       SSLTYPE=unix \
   16                       SSLDIR=/usr \
   17                       SSLCERTS=/etc/ssl/certs \
   18                       IP=6
   19     cd c-client
   20     gcc -Wl,-soname,$name.so.1 -shared -fPIC -o $name.so.1.0.0 *.o
   21 
   22     install -d $PKG/usr/{lib,include/c-client}
   23 
   24     install -m 644 c-client.a $PKG/usr/lib/$name.a
   25     install -m 755 $name.so.1.0.0 $PKG/usr/lib
   26     ln -s $name.so.1.0.0 $PKG/usr/lib/$name.so.1
   27     ln -s $name.so.1.0.0 $PKG/usr/lib/$name.so
   28 
   29     install -m 644 *.h $PKG/usr/include/c-client
   30     install -m 644 linkage.c $PKG/usr/include/c-client
   31     rm $PKG/usr/include/c-client/os_*.h
   32 }

Generated by cgit