#!/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-libs-$VERSION PKG=/tmp/package-bluez-libs rm -rf $TMP $PKG cd /tmp tar zxfv $CWD/bluez-libs-$VERSION.tar.gz cd $TMP CFLAGS="-O2 -fPIC" \ ./configure \ --prefix=/usr \ $CONFIGURE_FLAGS make make install DESTDIR=$PKG cd $PKG mkdir usr/lib mv usr/lib64/pkgconfig usr/lib/ mkdir install cat $CWD/slack-desc > install/slack-desc makepkg -l y -c n ../bluez-libs-$VERSION-$ARCH-$BUILD.tgz