comparison gnu/wget/wget.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
comparison
equal deleted inserted replaced
1221:a47aaf9743a0 1222:325631424c65
60 with_uuid="--with-uuid" 60 with_uuid="--with-uuid"
61 else 61 else
62 with_uuid="--without-uuid" 62 with_uuid="--without-uuid"
63 fi 63 fi
64 64
65 rm -rf $PKGNAME-$PKGVERSION 65 build()
66 tar xvf $PKGNAME-$PKGVERSION.tar.lz 66 {
67 cd $PKGNAME-$PKGVERSION 67 rm -rf $PKGNAME-$PKGVERSION
68 tar xvf $PKGNAME-$PKGVERSION.tar.lz
69 cd $PKGNAME-$PKGVERSION
68 70
69 CC="$CC" \ 71 CC="$CC" \
70 CFLAGS="$CFLAGS" \ 72 CFLAGS="$CFLAGS" \
71 LDFLAGS="$LDFLAGS" \ 73 LDFLAGS="$LDFLAGS" \
72 LIBS="$LIBS" \ 74 LIBS="$LIBS" \
73 ./configure \ 75 ./configure \
74 --build=$CBUILD \ 76 --build=$CBUILD \
75 --host=$CHOST \ 77 --host=$CHOST \
76 --prefix=/usr \ 78 --prefix= \
77 --without-included-libunistring \ 79 --without-included-libunistring \
78 $with_nls \ 80 $with_nls \
79 $with_ssl \ 81 $with_ssl \
80 $with_uuid 82 $with_uuid
81 make 83 make
82 make install DESTDIR=$DESTDIR 84 make install DESTDIR=$DESTDIR
83 85
84 cd .. 86 cd ..
85 rm -rf $PKGNAME-$PKGVERSION 87 rm -rf $PKGNAME-$PKGVERSION
88 }