# SliTaz package receipt. PACKAGE="libcroco" VERSION="0.6.13" CATEGORY="system-tools" SHORT_DESC="Cascading Style Sheet (CSS) parsing and manipulation toolkit." MAINTAINER="pankso@slitaz.org" LICENSE="LGPL2" WEB_SITE="https://gitlab.gnome.org/Archive/libcroco" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" DEPENDS="glib libxml2 zlib" BUILD_DEPENDS="glib-dev libxml2-dev zlib-dev" HOST_ARCH="i486 arm" 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() { ./configure $CONFIGURE_ARGS && make -j 1 && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib mkdir -p $fs/usr/bin cp $install/usr/bin/csslint* $fs/usr/bin cp -a $install/usr/lib/*.so* $fs/usr/lib }