123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- set -e
- program=libetpan
- version=1.9.4
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://github.com/dinhviethoa/libetpan/archive/${version}/$tarname
- description="
- A library that will handle all kind of mailbox access.
- The purpose of this mail library is to provide a portable, efficient
- framework for different kinds of mail access: IMAP, SMTP, POP and NNTP.
- It provides an API for C language.
- "
- homepage=https://www.etpan.org/libetpan.html
- license="3-clause BSD"
- docs="AUTHORS COPYRIGHT NEWS README.md"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
-
- sh ./autogen.sh CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-static=no \
- --enable-shared=yes \
- --enable-db \
- --enable-ipv6 \
- --with-zlib \
- --with-sasl=no \
- --with-openssl=no --with-gnutls=yes \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install-strip
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|