comparison core/btrfs-progs/btrfs-progs.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
55 with_zstd="--enable-zstd" 55 with_zstd="--enable-zstd"
56 else 56 else
57 with_zstd="--disable-zstd" 57 with_zstd="--disable-zstd"
58 fi 58 fi
59 59
60 build() 60 rm -rf $PKGNAME-v$PKGVERSION
61 { 61 tar xvf $PKGNAME-v$PKGVERSION.tar.xz
62 rm -rf $PKGNAME-v$PKGVERSION 62 cd $PKGNAME-v$PKGVERSION
63 tar xvf $PKGNAME-v$PKGVERSION.tar.xz
64 cd $PKGNAME-v$PKGVERSION
65 63
66 # --disable-backtrace: not available on musl. 64 # --disable-backtrace: not available on musl.
67 CC="$CC" \ 65 CC="$CC" \
68 CFLAGS="$CFLAGS" \ 66 CFLAGS="$CFLAGS" \
69 LDFLAGS="$LDFLAGS" \ 67 LDFLAGS="$LDFLAGS" \
70 LIBS="$LIBS" \ 68 LIBS="$LIBS" \
71 ./configure \ 69 ./configure \
72 --build=$CBUILD \ 70 --build=$CBUILD \
73 --host=$CHOST \ 71 --host=$CHOST \
74 --prefix= \ 72 --prefix= \
75 --disable-backtrace \ 73 --disable-backtrace \
76 --disable-documentation \ 74 --disable-documentation \
77 $with_convert \ 75 $with_convert \
78 $with_python \ 76 $with_python \
79 $with_zstd 77 $with_zstd
80 make 78 make
81 make install DESTDIR=$DESTDIR 79 make install DESTDIR=$DESTDIR
82 80
83 cd .. 81 cd ..
84 rm -rf $PKGNAME-v$PKGVERSION 82 rm -rf $PKGNAME-v$PKGVERSION
85 }