Mercurial > vanilla
comparison shells/dash/dash.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 |
---|---|
36 with_libedit="--with-libedit" | 36 with_libedit="--with-libedit" |
37 else | 37 else |
38 with_libedit="--without-libedit" | 38 with_libedit="--without-libedit" |
39 fi | 39 fi |
40 | 40 |
41 rm -rf $PKGNAME-$PKGVERSION | 41 build() |
42 tar xvf $PKGNAME-$PKGVERSION.tar.gz | 42 { |
43 cd $PKGNAME-$PKGVERSION | 43 rm -rf $PKGNAME-$PKGVERSION |
44 tar xvf $PKGNAME-$PKGVERSION.tar.gz | |
45 cd $PKGNAME-$PKGVERSION | |
44 | 46 |
45 CC="$CC" \ | 47 CC="$CC" \ |
46 CFLAGS="$CFLAGS" \ | 48 CFLAGS="$CFLAGS" \ |
47 LDFLAGS="$LDFLAGS" \ | 49 LDFLAGS="$LDFLAGS" \ |
48 LIBS="$LIBS" \ | 50 LIBS="$LIBS" \ |
49 ./configure \ | 51 ./configure \ |
50 --build=$CBUILD \ | 52 --build=$CBUILD \ |
51 --host=$CHOST \ | 53 --host=$CHOST \ |
52 --prefix=/usr \ | 54 --prefix= \ |
53 $with_libedit | 55 $with_libedit |
54 make | 56 make |
55 make install DESTDIR=$DESTDIR | 57 make install DESTDIR=$DESTDIR |
56 | 58 |
57 cd .. | 59 cd .. |
58 rm -rf $PKGNAME-$PKGVERSION | 60 rm -rf $PKGNAME-$PKGVERSION |
61 } |