Mercurial > vanilla
comparison x11/xclock/xclock.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 |
---|---|
41 with_ttf="--with-xft" | 41 with_ttf="--with-xft" |
42 else | 42 else |
43 with_ttf="--without-xft" | 43 with_ttf="--without-xft" |
44 fi | 44 fi |
45 | 45 |
46 rm -rf $PKGNAME-$PKGVERSION | 46 build() |
47 tar xvf $PKGNAME-$PKGVERSION.tar.gz | 47 { |
48 cd $PKGNAME-$PKGVERSION | 48 rm -rf $PKGNAME-$PKGVERSION |
49 tar xvf $PKGNAME-$PKGVERSION.tar.gz | |
50 cd $PKGNAME-$PKGVERSION | |
49 | 51 |
50 CC="$CC" \ | 52 CC="$CC" \ |
51 CFLAGS="$CFLAGS" \ | 53 CFLAGS="$CFLAGS" \ |
52 LDFLAGS="$LDFLAGS" \ | 54 LDFLAGS="$LDFLAGS" \ |
53 LIBS="$LIBS" \ | 55 LIBS="$LIBS" \ |
54 ./configure \ | 56 ./configure \ |
55 --build=$CBUILD \ | 57 --build=$CBUILD \ |
56 --host=$CHOST \ | 58 --host=$CHOST \ |
57 --prefix=/usr \ | 59 --prefix= \ |
58 $with_ttf | 60 $with_ttf |
59 make | 61 make |
60 make install DESTDIR=$DESTDIR | 62 make install DESTDIR=$DESTDIR |
61 | 63 |
62 cd .. | 64 cd .. |
63 rm -rf $PKGNAME-$PKGVERSION | 65 rm -rf $PKGNAME-$PKGVERSION |
66 } |