comparison gnu/inetutils/inetutils.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
45 with_pam="--with-pam" 45 with_pam="--with-pam"
46 else 46 else
47 with_pam="--without-pam" 47 with_pam="--without-pam"
48 fi 48 fi
49 49
50 build() 50 rm -rf $PKGNAME-$PKGVERSION
51 { 51 tar xvf $PKGNAME-$PKGVERSION.tar.xz
52 rm -rf $PKGNAME-$PKGVERSION 52 cd $PKGNAME-$PKGVERSION
53 tar xvf $PKGNAME-$PKGVERSION.tar.xz
54 cd $PKGNAME-$PKGVERSION
55 53
56 # --disable-rcp: does not build with musl. 54 # --disable-rcp: does not build with musl.
57 # --disable-rlogin: does not build with musl. 55 # --disable-rlogin: does not build with musl.
58 # --disable-rsh: does not build with musl. 56 # --disable-rsh: does not build with musl.
59 CC="$CC" \ 57 CC="$CC" \
60 CFLAGS="$CFLAGS" \ 58 CFLAGS="$CFLAGS" \
61 LDFLAGS="$LDFLAGS" \ 59 LDFLAGS="$LDFLAGS" \
62 LIBS="$LIBS" \ 60 LIBS="$LIBS" \
63 ./configure \ 61 ./configure \
64 --build=$CBUILD \ 62 --build=$CBUILD \
65 --host=$CHOST \ 63 --host=$CHOST \
66 --prefix= \ 64 --prefix= \
67 --disable-rcp \ 65 --disable-rcp \
68 --disable-rlogin \ 66 --disable-rlogin \
69 --disable-rsh \ 67 --disable-rsh \
70 $with_completion \ 68 $with_completion \
71 $with_pam 69 $with_pam
72 make 70 make
73 make install DESTDIR=$DESTDIR 71 make install DESTDIR=$DESTDIR
74 72
75 cd .. 73 cd ..
76 rm -rf $PKGNAME-$PKGVERSION 74 rm -rf $PKGNAME-$PKGVERSION
77 }