#!/bin/sh PKGNAM=netwatch VERSION=${VERSION:-1.3.0} EXTRAVERSION=${EXTRAVERSION:-1} BUILD=${BUILD:-1} . /etc/pkghelpers pkghelpers_env rm -rf $PKG mkdir -p $TMP $PKG cd $TMP rm -rf $PKGNAM-$VERSION tar xvf $CWD/$PKGNAM-$VERSION-$EXTRAVERSION.tar.gz cd $PKGNAM-$VERSION pkghelpers_permissions # Remove the call home "feature" zcat $CWD/netwatch.phonemyself.diff.gz | patch -p0 # Configure CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --infodir=/usr/info \ --build=$ARCH-$DISTRO-linux # Fix "make install" problem zcat $CWD/netwatch.makefile.diff.gz | patch -p0 # Compile the application and install it into the $PKG directory make || exit 1 make install DESTDIR=$PKG || exit 1 # Copy program documentation into the package mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION cp -a \ BUGS CHANGES COPYING README README.performance TODO \ $PKGNAM-$VERSION.lsm NetwatchKeyCommands.html \ $PKG/usr/doc/$PKGNAM-$VERSION # Copy the slack-desc mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG pkghelpers_fixup pkghelpers_makepkg