Mercurial > vanilla
comparison system/upower/upower.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 |
---|---|
42 with_nls="--enable-nls" | 42 with_nls="--enable-nls" |
43 else | 43 else |
44 with_nls="--disable-nls" | 44 with_nls="--disable-nls" |
45 fi | 45 fi |
46 | 46 |
47 rm -rf $PKGNAME-$PKGVERSION | 47 build() |
48 tar xvf $PKGNAME-$PKGVERSION.tar.xz | 48 { |
49 cd $PKGNAME-$PKGVERSION | 49 rm -rf $PKGNAME-$PKGVERSION |
50 tar xvf $PKGNAME-$PKGVERSION.tar.xz | |
51 cd $PKGNAME-$PKGVERSION | |
50 | 52 |
51 CC="$CC" \ | 53 CC="$CC" \ |
52 CFLAGS="$CFLAGS" \ | 54 CFLAGS="$CFLAGS" \ |
53 CXX="$CXX" \ | 55 CXX="$CXX" \ |
54 CXXFLAGS="$CXXFLAGS" \ | 56 CXXFLAGS="$CXXFLAGS" \ |
55 LDFLAGS="$LDFLAGS" \ | 57 LDFLAGS="$LDFLAGS" \ |
56 LIBS="$LIBS" \ | 58 LIBS="$LIBS" \ |
57 ./configure \ | 59 ./configure \ |
58 --build=$CBUILD \ | 60 --build=$CBUILD \ |
59 --host=$CHOST \ | 61 --host=$CHOST \ |
60 --prefix=/usr \ | 62 --prefix= \ |
61 --without-idevice \ | 63 --without-idevice \ |
62 --with-systemdutildir=no \ | 64 --with-systemdutildir=no \ |
63 --with-systemdsystemunitdir=no \ | 65 --with-systemdsystemunitdir=no \ |
64 $with_nls | 66 $with_nls |
65 make | 67 make |
66 make install DESTDIR=$DESTDIR | 68 make install DESTDIR=$DESTDIR |
67 find $DESTDIR -type f -name "*.la" -delete | 69 find $DESTDIR -type f -name "*.la" -delete |
68 | 70 |
69 cd .. | 71 cd .. |
70 rm -rf $PKGNAME-$PKGVERSION | 72 rm -rf $PKGNAME-$PKGVERSION |
73 } |