wok-current annotate weechat/receipt @ rev 7852

weechat:build without tcl and aspell.
author Liu Peng <rocky@slitaz.org>
date Wed Dec 29 04:17:14 2010 +0000 (2010-12-29)
parents 38b6f92fbac6
children 254cdebd32d5
rev   line source
rocky@7847 1 # SliTaz package receipt
rocky@7847 2
rocky@7847 3 PACKAGE="weechat"
rocky@7847 4 VERSION="0.3.3"
rocky@7847 5 CATEGORY="network"
rocky@7847 6 SHORT_DESC="a fast, light and extensible chat client."
rocky@7847 7 MAINTAINER="rocky@slitaz.org"
rocky@7847 8 DEPENDS="ncursesw libgcrypt libgnutls ncursesw libtasn1 python perl"
rocky@7847 9 BUILD_DEPENDS="ncurses ncurses-dev libgcrypt-dev gnutls-dev libtasn1-dev perl python python-dev pkg-config slitaz-toolchain"
rocky@7847 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
rocky@7847 11 WEB_SITE="http://weechat.org/"
rocky@7847 12 WGET_URL="http://weechat.org/files/src/$TARBALL"
rocky@7847 13 TAGS="irc"
rocky@7847 14
rocky@7847 15 # Rules to configure and make the package.
rocky@7847 16 compile_rules()
rocky@7847 17 {
rocky@7847 18 cd $src
rocky@7847 19 while read file; do
rocky@7847 20 [ -f done.$file ] && continue
rocky@7847 21 echo "Apply $file..."
rocky@7847 22 patch -p1 < ../stuff/$file || return 1
rocky@7847 23 touch done.$file
rocky@7847 24 done <<EOT
rocky@7847 25 weechat-implicit-function-declaration.patch
rocky@7847 26 EOT
rocky@7847 27 ./configure \
rocky@7847 28 --prefix=/usr \
rocky@7847 29 --enable-ncurses \
rocky@7847 30 --enable-gcrypt \
rocky@7847 31 --enable-gnutls \
rocky@7847 32 --enable-python \
rocky@7847 33 --enable-perl \
rocky@7847 34 --disable-ruby \
rocky@7852 35 --disable-tcl \
rocky@7852 36 --disable-aspell \
rocky@7847 37 --disable-doc \
rocky@7847 38 --with-debug=0 \
rocky@7847 39 $CONFIGURE_ARGS &&
rocky@7847 40 make &&
rocky@7847 41 make DESTDIR=$PWD/_pkg install
rocky@7847 42 }
rocky@7847 43
rocky@7847 44 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@7847 45 genpkg_rules()
rocky@7847 46 {
rocky@7847 47 mkdir -p $fs/usr
rocky@7847 48 cp -a $_pkg/usr/bin $fs/usr
rocky@7847 49 cp -a $_pkg/usr/lib $fs/usr
rocky@7847 50 rm -rf $fs/usr/lib/pkgconfig
rocky@7847 51 rm -f $fs/usr/lib/weechat/plugins/*.a
rocky@7847 52 rm -f $fs/usr/lib/weechat/plugins/*.la
rocky@7847 53 }