comparison xfce/garcon/garcon.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
44 with_nls="--enable-nls" 44 with_nls="--enable-nls"
45 else 45 else
46 with_nls="--disable-nls" 46 with_nls="--disable-nls"
47 fi 47 fi
48 48
49 rm -rf $PKGNAME-$PKGVERSION 49 build()
50 tar xvf $PKGNAME-$PKGVERSION.tar.bz2 50 {
51 cd $PKGNAME-$PKGVERSION 51 rm -rf $PKGNAME-$PKGVERSION
52 tar xvf $PKGNAME-$PKGVERSION.tar.bz2
53 cd $PKGNAME-$PKGVERSION
52 54
53 CC="$CC" \ 55 CC="$CC" \
54 CFLAGS="$CFLAGS" \ 56 CFLAGS="$CFLAGS" \
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 --localedir=/share/locale \ 63 --localedir=/share/locale \
62 --with-locales-dir=/share/locale \ 64 --with-locales-dir=/share/locale \
63 --disable-gtk2 \ 65 --disable-gtk2 \
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 }