Mercurial > vanilla
comparison x11/xkeyboard-config/xkeyboard-config.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 |
---|---|
37 with_nls="--enable-nls" | 37 with_nls="--enable-nls" |
38 else | 38 else |
39 with_nls="--disable-nls" | 39 with_nls="--disable-nls" |
40 fi | 40 fi |
41 | 41 |
42 rm -rf $PKGNAME-$PKGVERSION | 42 build() |
43 tar xvf $PKGNAME-$PKGVERSION.tar.bz2 | 43 { |
44 cd $PKGNAME-$PKGVERSION | 44 rm -rf $PKGNAME-$PKGVERSION |
45 tar xvf $PKGNAME-$PKGVERSION.tar.bz2 | |
46 cd $PKGNAME-$PKGVERSION | |
45 | 47 |
46 CC="$CC" \ | 48 CC="$CC" \ |
47 CFLAGS="$CFLAGS" \ | 49 CFLAGS="$CFLAGS" \ |
48 LDFLAGS="$LDFLAGS" \ | 50 LDFLAGS="$LDFLAGS" \ |
49 LIBS="$LIBS" \ | 51 LIBS="$LIBS" \ |
50 ./configure \ | 52 ./configure \ |
51 --build=$CBUILD \ | 53 --build=$CBUILD \ |
52 --host=$CHOST \ | 54 --host=$CHOST \ |
53 --prefix=/usr \ | 55 --prefix= \ |
54 $with_nls | 56 $with_nls |
55 make | 57 make |
56 make install pkgconfigdir=/lib/pkgconfig DESTDIR=$DESTDIR | 58 make install pkgconfigdir=/lib/pkgconfig DESTDIR=$DESTDIR |
57 | 59 |
58 cd .. | 60 cd .. |
59 rm -rf $PKGNAME-$PKGVERSION | 61 rm -rf $PKGNAME-$PKGVERSION |
62 } |