Mercurial > vanilla
diff dns/avahi/avahi.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/dns/avahi/avahi.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/dns/avahi/avahi.sh Wed Oct 27 11:32:16 2021 +0200 @@ -89,42 +89,45 @@ with_nls="--disable-nls" fi -rm -rf $PKGNAME-$PKGVERSION -tar xvf $PKGNAME-$PKGVERSION.tar.gz -cd $PKGNAME-$PKGVERSION +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.gz + cd $PKGNAME-$PKGVERSION -# --disable-python: does not support Python 3 yet. -CC="$CC" \ -CFLAGS="$CFLAGS" \ -CXX="$CXX" \ -CXXFLAGS="$CXXFLAGS" \ -LDFLAGS="$LDFLAGS" \ -LIBS="$LIBS" \ -./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sbindir=/bin \ - --disable-gtk \ - --disable-qt3 \ - --disable-qt4 \ - --disable-mono \ - --disable-monodoc \ - --disable-python \ - --with-xml=expat \ - --with-distro="none" \ - --without-systemdsystemunitdir \ - $with_dbus \ - $with_glib \ - $with_gobject \ - $with_gtk \ - $with_introspection \ - $with_nls -make -make install DESTDIR=$DESTDIR -rmdir $DESTDIR/run -find $DESTDIR -type f -name "*.la" -delete -install -Dm644 ../avahi $DESTDIR/etc/rc.d/avahi + # --disable-python: does not support Python 3 yet. + CC="$CC" \ + CFLAGS="$CFLAGS" \ + CXX="$CXX" \ + CXXFLAGS="$CXXFLAGS" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix= \ + --sbindir=/bin \ + --disable-gtk \ + --disable-qt3 \ + --disable-qt4 \ + --disable-mono \ + --disable-monodoc \ + --disable-python \ + --with-xml=expat \ + --with-distro="none" \ + --without-systemdsystemunitdir \ + $with_dbus \ + $with_glib \ + $with_gobject \ + $with_gtk \ + $with_introspection \ + $with_nls + make + make install DESTDIR=$DESTDIR + rmdir $DESTDIR/run + find $DESTDIR -type f -name "*.la" -delete + install -Dm644 ../avahi $DESTDIR/etc/rc.d/avahi -cd .. -rm -rf $PKGNAME-$PKGVERSION + cd .. + rm -rf $PKGNAME-$PKGVERSION +}