SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "vala"

# SliTaz package receipt.

PACKAGE="vala"
VERSION="0.54.6"
CATEGORY="development"
SHORT_DESC="Compiler for the GObject type system"
MAINTAINER="mimas@slitaz.org"
LICENSE="LGPL2.1"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://wiki.gnome.org/Projects/Vala"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
TAGS="compiler"
HOST_ARCH="i486 arm"

DEPENDS="glib"
BUILD_DEPENDS="automake autoconf libtool flex bison \
glib-dev pkg-config"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    # Patch to avoid graphviz dep
    # See vala.SlackBuild
    # thanks openembedded team and Pat :)
    patch -p1 < $stuff/disable-graphviz.patch
    patch -p1 < $stuff//no.gvc-compat.c.diff

    autoreconf -vif 

    # Hack to build vala himself
    # Thanks Pat again ;)
    PATH=$(pwd)/compiler:$PATH

    ./configure \
        --prefix=/usr \
        --libdir=/usr/lib \
        --disable-graphviz \
    $CONFIGURE_ARGS &&
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/vala* $fs/usr/lib
    cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    cp -a $install/usr/include $fs/usr
    cp -a $install/usr/share/vala* $fs/usr/share
    cp -a $install/usr/share/aclocal $fs/usr/share

        # Ensure remove .la files
        find $fs -name "*.la" -delete
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)