SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libcaca"

# SliTaz package receipt.

PACKAGE="libcaca"
VERSION="0.99.beta20"
CATEGORY="graphics"
SHORT_DESC="Text mode graphics utilities."
MAINTAINER="paul@slitaz.org"
LICENSE="GPL2"
WEB_SITE="http://caca.zoy.org/wiki/libcaca"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/cacalabs/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS="imlib2 ncurses"
BUILD_DEPENDS="automake imlib2-dev libtool ncurses-dev xorg-libX11-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./bootstrap &&
    ./configure        \
        --prefix=/usr    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    # hack for missing iso8859-1 folder
#    cook xorg-libX11

    mkdir -p $fs/usr/lib
#    mkdir -p $fs/usr/share/X11/locale

    cp -a $install/usr/bin        $fs/usr    
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    #cp -a $install/usr/lib/jni $fs/usr/lib
    cp -a $install/usr/share    $fs/usr
    rm -rf                $fs/usr/share/man
    # hack for missing iso8859-1 folder
#    cp -a $WOK/xorg-libX11/install/usr/share/X11/locale/iso8859-1 \
#                    $fs/usr/share/X11/locale
#    really needed?
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)