Mercurial > vanilla
diff bluetooth/bluez/bluez.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
line wrap: on
line diff
--- a/bluetooth/bluez/bluez.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/bluetooth/bluez/bluez.sh Wed Oct 27 11:32:16 2021 +0200 @@ -64,32 +64,35 @@ with_udev="--disable-udev" fi -rm -rf $PKGNAME-$PKGVERSION -tar xvf $PKGNAME-$PKGVERSION.tar.xz -cd $PKGNAME-$PKGVERSION +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.xz + cd $PKGNAME-$PKGVERSION -# --enable-library: required by many packages. -CC="$CC" \ -CFLAGS="$CFLAGS" \ -CXX="$CXX" \ -CXXFLAGS="$CXXFLAGS" \ -LDFLAGS="$LDFLAGS" \ -LIBS="$LIBS" \ -./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --disable-systemd \ - --enable-library \ - $with_audio \ - $with_cups \ - $with_legacy \ - $with_udev -make -make install DESTDIR=$DESTDIR -find $DESTDIR -type f -name "*.la" -delete -install -Dm0644 src/main.conf $DESTDIR/etc/bluetooth/main.conf -install -Dm0644 ../bluetooth $DESTDIR/etc/rc.d/bluetooth + # --enable-library: required by many packages. + CC="$CC" \ + CFLAGS="$CFLAGS" \ + CXX="$CXX" \ + CXXFLAGS="$CXXFLAGS" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix= \ + --disable-systemd \ + --enable-library \ + $with_audio \ + $with_cups \ + $with_legacy \ + $with_udev + make + make install DESTDIR=$DESTDIR + find $DESTDIR -type f -name "*.la" -delete + install -Dm0644 src/main.conf $DESTDIR/etc/bluetooth/main.conf + install -Dm0644 ../bluetooth $DESTDIR/etc/rc.d/bluetooth -cd .. -rm -rf $PKGNAME-$PKGVERSION + cd .. + rm -rf $PKGNAME-$PKGVERSION +}