Receipt for: centerim

source
# SliTaz package receipt.

PACKAGE="centerim"
VERSION="4.22.10"
CATEGORY="network"
SHORT_DESC="Console mode IM"
MAINTAINER="allan316@gmail.com"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/petrpavlu/centerim5"
WGET_URL="https://mirrors.aliyun.com/ubuntu-ports/pool/universe/c/centerim/centerim_$VERSION.orig.tar.gz"
TAGS="im instant-messenger cli command-line"

DEPENDS="ncursesw curl libssl10 libidn libgpg-error gpgme"
BUILD_DEPENDS="ncursesw-dev curl-dev openssl10-dev libidn-dev libgpg-error-dev \
gpgme-dev"

# What is the latest version available today?
current_version()
{
	wget -O - https://github.com/petrpavlu/centerim5/releases 2>/dev/null | \
	sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i 's/<list>/&\n#include <stdio.h>/' libicq2000/libicq2000/sigslot.h
	mkdir -p $DESTDIR/usr
	./configure --prefix=/usr $CONFIGURE_ARGS &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share
	cp -a $install/usr/bin $fs/usr
	cp -a $install/usr/share/centerim $fs/usr/share	
}