Mercurial > vanilla
comparison bluetooth/bluez/bluez.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 297b5eef115e |
children | 57dc83a39b13 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
62 with_udev="--enable-udev" | 62 with_udev="--enable-udev" |
63 else | 63 else |
64 with_udev="--disable-udev" | 64 with_udev="--disable-udev" |
65 fi | 65 fi |
66 | 66 |
67 build() | 67 rm -rf $PKGNAME-$PKGVERSION |
68 { | 68 tar xvf $PKGNAME-$PKGVERSION.tar.xz |
69 rm -rf $PKGNAME-$PKGVERSION | 69 cd $PKGNAME-$PKGVERSION |
70 tar xvf $PKGNAME-$PKGVERSION.tar.xz | |
71 cd $PKGNAME-$PKGVERSION | |
72 | 70 |
73 # --enable-library: required by many packages. | 71 # --enable-library: required by many packages. |
74 CC="$CC" \ | 72 CC="$CC" \ |
75 CFLAGS="$CFLAGS" \ | 73 CFLAGS="$CFLAGS" \ |
76 CXX="$CXX" \ | 74 CXX="$CXX" \ |
77 CXXFLAGS="$CXXFLAGS" \ | 75 CXXFLAGS="$CXXFLAGS" \ |
78 LDFLAGS="$LDFLAGS" \ | 76 LDFLAGS="$LDFLAGS" \ |
79 LIBS="$LIBS" \ | 77 LIBS="$LIBS" \ |
80 ./configure \ | 78 ./configure \ |
81 --build=$CBUILD \ | 79 --build=$CBUILD \ |
82 --host=$CHOST \ | 80 --host=$CHOST \ |
83 --prefix= \ | 81 --prefix= \ |
84 --disable-systemd \ | 82 --disable-systemd \ |
85 --enable-library \ | 83 --enable-library \ |
86 $with_audio \ | 84 $with_audio \ |
87 $with_cups \ | 85 $with_cups \ |
88 $with_legacy \ | 86 $with_legacy \ |
89 $with_udev | 87 $with_udev |
90 make | 88 make |
91 make install DESTDIR=$DESTDIR | 89 make install DESTDIR=$DESTDIR |
92 find $DESTDIR -type f -name "*.la" -delete | 90 find $DESTDIR -type f -name "*.la" -delete |
93 install -Dm0644 src/main.conf $DESTDIR/etc/bluetooth/main.conf | 91 install -Dm0644 src/main.conf $DESTDIR/etc/bluetooth/main.conf |
94 install -Dm0644 ../bluetooth $DESTDIR/etc/rc.d/bluetooth | 92 install -Dm0644 ../bluetooth $DESTDIR/etc/rc.d/bluetooth |
95 | 93 |
96 cd .. | 94 cd .. |
97 rm -rf $PKGNAME-$PKGVERSION | 95 rm -rf $PKGNAME-$PKGVERSION |
98 } |