| 1 | # Description: A console Jabber client. |
| 2 | # URL: http://mcabber.com/ |
| 3 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 4 | # Depends on: ncurses |
| 5 | |
| 6 | name=mcabber |
| 7 | version=0.9.10 |
| 8 | release=1 |
| 9 | source=(http://mcabber.com/files/$name-$version.tar.bz2) |
| 10 | |
| 11 | build() { |
| 12 | cd $name-$version |
| 13 | sed -e '/#undef malloc/d' -e '/#undef realloc/d' -i config.h.in |
| 14 | sed -e 's|`$PKG_CONFIG --cflags $pkg_config_args`|"-I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include"|g' -i configure |
| 15 | ./configure --build=$CHOST \ |
| 16 | --host=$CTARGET \ |
| 17 | --disable-nls \ |
| 18 | --prefix=/usr \ |
| 19 | --disable-glibtest |
| 20 | sed -e '/#define realloc rpl_realloc/d' \ |
| 21 | -e '/#define malloc rpl_malloc/d' \ |
| 22 | -i config.h |
| 23 | find -type f -name 'Makefile' \ |
| 24 | -exec sed -e "s|-I/usr|-I$CLFS/usr|g" -e "s|-O2 -O2|-O2|g" -i {} \; |
| 25 | make |
| 26 | make DESTDIR=$PKG install |
| 27 | rm -r $PKG/usr/share/mcabber |
| 28 | } |