#!/bin/sh # Copyright (c) 2005 Frederick Emmott CWD=`pwd` VERSION=${VERSION:-2.18} ARCH=${ARCH:-x86_64} BUILD=${BUILD:-1} unset $CONFIGURE_FLAGS if [[ $ARCH == x86_64 ]]; then CONFIGURE_FLAGS=--libdir=/usr/lib64; fi TMP=/tmp/bluez-utils-$VERSION PKG=/tmp/package-bluez-utils rm -rf $TMP $PKG cd /tmp tar zxfv $CWD/bluez-utils-$VERSION.tar.gz cd $TMP CFLAGS="-O2 -fPIC" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ $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 mkdir -p etc/rc.d cat $CWD/rc.bluez > etc/rc.d/rc.bluez chmod 755 etc/rc.d/rc.bluez makepkg -l y -c n ../bluez-utils-$VERSION-$ARCH-$BUILD.tgz