#!/bin/sh # Copyright (c) 2005 Frederick Emmott CWD=`pwd` VERSION=${VERSION:-1.0.1} ARCH=${ARCH:-x86_64} BUILD=${BUILD:-2} unset $CONFIGURE_FLAGS if [[ $ARCH == x86_64 ]]; then CONFIGURE_FLAGS= \ --libdir=/usr/lib64 fi TMP=/tmp/openobex-$VERSION PKG=/tmp/package-openobex rm -rf $TMP $PKG cd /tmp tar zxfv $CWD/openobex-$VERSION.tar.gz cd $TMP zcat $CWD/config.sub.gz > config.sub chmod 755 config.sub CFLAGS="-O2 -fPIC" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib64 $CONFIGURE_FLAGS make make install DESTDIR=$PKG cd $PKG ( find -type f | xargs file | grep ELF | awk -F: '{print $1}' | xargs strip -g ) mkdir install cat $CWD/slack-desc > install/slack-desc makepkg -l y -c n ../openobex-$VERSION-$ARCH-$BUILD.tgz