name=xmonobut
version=0.4.1
-release=2
+release=3
source=(http://familiar.handhelds.org/source/v0.8.4-rc2/sources/xmonobut-0.4.1.tar.gz)
build() {
cd $name-$version
- sed -e 's|CFLAGS="$CFLAGS `pkg-config --cflags libmb`"|CFLAGS="$CFLAGS -I$CLFS/usr/include -I$CLFS/clfs/usr/include/X11 -I$CLFS/usr/include/X11/extensions -I$CLFS/clfs/usr/include/freetype2"|g' \
+ sed -e 's|CFLAGS="$CFLAGS `pkg-config --cflags libmb`"|CFLAGS="$CFLAGS -I$CLFS/usr/include -I$CLFS/clfs/usr/include/X11 -I$CLFS/usr/include/X11/extensions -I$CLFS/usr/include/freetype2"|g' \
-e 's|MB_LIBS="`pkg-config --libs libmb`"|MB_LIBS="-L$CLFS/usr/lib -lmb"|g' \
-e 's|$PKG_CONFIG --exists libmb|true|g' -i configure
./configure --build=$CHOST \
--prefix=/usr \
--mandir=/usr/man \
--disable-nls
- make
+ make V=1
make DESTDIR=$PKG install
}