SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "giblib"

# SliTaz package receipt

PACKAGE="giblib"
VERSION="1.2.4"
CATEGORY="graphics"
SHORT_DESC="Giblib graphics library."
MAINTAINER="mallory@sweetpeople.org"
LICENSE="MIT"
WEB_SITE="https://freshmeat.sourceforge.net/projects/giblib/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/cbane/giblib/archive/v$VERSION.tar.gz"

DEPENDS="freetype imlib2 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext"
BUILD_DEPENDS="freetype-dev imlib2-dev xorg-xproto xorg-libXext-dev"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Handle cross compilation
case "$ARCH" in
    arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;;
esac

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|/doc|/share&|' Makefile*

    ./configure                    \
        --prefix=/usr                \
        --with-imlib2-exec-prefix=/usr        \
        --with-imlib2-prefix=/usr/lib/imlib2    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_folders    pkgconfig
    cook_copy_files        *.so*
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)