comparison lib/libblockdev/libblockdev.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
49 with_python="--with-python3" 49 with_python="--with-python3"
50 else 50 else
51 with_python="--without-python3" 51 with_python="--without-python3"
52 fi 52 fi
53 53
54 rm -rf $PKGNAME-$PKGVERSION 54 build()
55 tar xvf $PKGNAME-$PKGVERSION.tar.gz 55 {
56 cd $PKGNAME-$PKGVERSION 56 rm -rf $PKGNAME-$PKGVERSION
57 tar xvf $PKGNAME-$PKGVERSION.tar.gz
58 cd $PKGNAME-$PKGVERSION
57 59
58 CC="$CC" \ 60 CC="$CC" \
59 CFLAGS="$CFLAGS" \ 61 CFLAGS="$CFLAGS" \
60 CXX="$CXX" \ 62 CXX="$CXX" \
61 CXXFLAGS="$CXXFLAGS" \ 63 CXXFLAGS="$CXXFLAGS" \
62 LDFLAGS="$LDFLAGS" \ 64 LDFLAGS="$LDFLAGS" \
63 LIBS="$LIBS" \ 65 LIBS="$LIBS" \
64 ./configure \ 66 ./configure \
65 --build=$CBUILD \ 67 --build=$CBUILD \
66 --host=$CHOST \ 68 --host=$CHOST \
67 --prefix=/usr \ 69 --prefix= \
68 --without-btrfs \ 70 --without-btrfs \
69 --without-crypto \ 71 --without-crypto \
70 --without-dmraid \ 72 --without-dmraid \
71 --without-fs \ 73 --without-fs \
72 --without-kbd \ 74 --without-kbd \
73 --without-mdraid \ 75 --without-mdraid \
74 --without-nvdimm \ 76 --without-nvdimm \
75 --without-part \ 77 --without-part \
76 --without-python2 \ 78 --without-python2 \
77 --without-tools \ 79 --without-tools \
78 --without-vdo \ 80 --without-vdo \
79 $with_lvm \ 81 $with_lvm \
80 $with_python 82 $with_python
81 make 83 make
82 make install DESTDIR=$DESTDIR 84 make install DESTDIR=$DESTDIR
83 find $DESTDIR -type f -name "*.la" -delete 85 find $DESTDIR -type f -name "*.la" -delete
84 86
85 cd .. 87 cd ..
86 rm -rf $PKGNAME-$PKGVERSION 88 rm -rf $PKGNAME-$PKGVERSION
89 }