wok annotate weechat/receipt @ rev 7847

Add: weechat v0.3.3(from wok-undigest/weechat)
author Liu Peng <rocky@slitaz.org>
date Tue Dec 28 16:11:28 2010 +0000 (2010-12-28)
parents
children 7aa8b2fe697f
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@7847 35 --disable-doc \
rocky@7847 36 --with-debug=0 \
rocky@7847 37 $CONFIGURE_ARGS &&
rocky@7847 38 make &&
rocky@7847 39 make DESTDIR=$PWD/_pkg install
rocky@7847 40 }
rocky@7847 41
rocky@7847 42 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@7847 43 genpkg_rules()
rocky@7847 44 {
rocky@7847 45 mkdir -p $fs/usr
rocky@7847 46 cp -a $_pkg/usr/bin $fs/usr
rocky@7847 47 cp -a $_pkg/usr/lib $fs/usr
rocky@7847 48 rm -rf $fs/usr/lib/pkgconfig
rocky@7847 49 rm -f $fs/usr/lib/weechat/plugins/*.a
rocky@7847 50 rm -f $fs/usr/lib/weechat/plugins/*.la
rocky@7847 51 }