comparison x11/xclock/xclock.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents ddab65a5b3f5
children 27d1a83dc8d6
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
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 build() 46 rm -rf $PKGNAME-$PKGVERSION
47 { 47 tar xvf $PKGNAME-$PKGVERSION.tar.gz
48 rm -rf $PKGNAME-$PKGVERSION 48 cd $PKGNAME-$PKGVERSION
49 tar xvf $PKGNAME-$PKGVERSION.tar.gz
50 cd $PKGNAME-$PKGVERSION
51 49
52 CC="$CC" \ 50 CC="$CC" \
53 CFLAGS="$CFLAGS" \ 51 CFLAGS="$CFLAGS" \
54 LDFLAGS="$LDFLAGS" \ 52 LDFLAGS="$LDFLAGS" \
55 LIBS="$LIBS" \ 53 LIBS="$LIBS" \
56 ./configure \ 54 ./configure \
57 --build=$CBUILD \ 55 --build=$CBUILD \
58 --host=$CHOST \ 56 --host=$CHOST \
59 --prefix= \ 57 --prefix= \
60 $with_ttf 58 $with_ttf
61 make 59 make
62 make install DESTDIR=$DESTDIR 60 make install DESTDIR=$DESTDIR
63 61
64 cd .. 62 cd ..
65 rm -rf $PKGNAME-$PKGVERSION 63 rm -rf $PKGNAME-$PKGVERSION
66 }