#!/bin/sh # Copyright (c) 2005 Frederick Emmott CWD=`pwd` VERSION=1.4 ARCH=${ARCH:-x86_64} BUILD=${BUILD:-1} TMP=/tmp/libgpg-error-$VERSION PKG=/tmp/package-libgpg-error rm -rf $TMP $PKG cd /tmp tar zxfv $CWD/libgpg-error-$VERSION.tar.gz cd $TMP LDFLAGS=-L/usr/lib64 \ CFLAGS="-O2 -fPIC" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib64 make make install DESTDIR=$PKG cd $PKG find -type f | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded mkdir install cat $CWD/slack-desc > install/slack-desc makepkg -l y -c n ../libgpg-error-$VERSION-$ARCH-$BUILD.tgz