#!/bin/sh VERSION=$1 # Extract source: cd ${SLACKTRACKSCRATCHDIR} tar xzvf $CWD/$PACKAGE-$VERSION.tar.gz cd glib-* slackhousekeeping # Apply patches: zcat $PORTCWD/glib-1.2.10-gcc34-1.patch.gz | patch -lp1 # Configure: ./configure \ --prefix=/usr \ --sysconfdir=/etc \ $ARCH-slackware-linux || failconfig # Make: make CFLAGS="${ARCH_CFLAGS} -Wall -D_REENTRANT" || failmake # Install: make CFLAGS="${ARCH_CFLAGS} -Wall -D_REENTRANT" install # Install docs: mkdir -p /usr/doc/$PACKAGE-$VERSION cp -a AUTHORS COPYING INSTALL NEWS README \ /usr/doc/$PACKAGE-$VERSION # Ensure permissions: ( cd ${SLACKTRACKFAKEROOT} chmod 755 usr/lib/libgmod*.so.* ) # Install package description: mkdir -p /install install -m644 $CWD/slack-desc /install