1. VectorLinux Core
  2. vabs

Commits

M0E-lnx  committed 68ad8fd

alpine include imap libraries in package

  • Participants
  • Parent commits b3f0fb1
  • Branches veclinux-7.1

Comments (0)

Files changed (1)

File var/vabs/alpine/src/alpine.SlackBuild

View file
 if [ "$ARCH" = "i?86" ]; then
   SLKCFLAGS="-O2 -march=i586 -mtune=i686"
   CONFIGURE_TRIPLET="i586-vector-linux"
+  LIBDIRSUFFIX=""
 elif [ "$ARCH" = "s390" ]; then
   SLKCFLAGS="-O2"
 elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O2 -fPIC"
   CONFIGURE_TRIPLET="x86_64-vlocity-linux"
+  LIBDIRSUFFIX="64"
 fi
 
 # Download the source code
 
 make install SSLTYPE=unix DESTDIR=$PKG || exit 1
 
+# Install the IMAP c-client library and header files for IMAP support in PHP:
+IMAPLIBDIR=$PKG/usr/local/lib${LIBDIRSUFFIX}/c-client
+mkdir -p $IMAPLIBDIR
+cd imap/c-client
+strip -g c-client.a
+mkdir -p $IMAPLIBDIR/lib${LIBDIRSUFFIX}
+cp c-client.a $IMAPLIBDIR/lib${LIBDIRSUFFIX}
+mkdir -p $IMAPLIBDIR/include
+cp *.h $IMAPLIBDIR/include
+
 # Add default config file:
 ./alpine/alpine -conf > $PKG/etc/pine.conf.new