# SliTaz package receipt. PACKAGE="serd" VERSION="0.30.12" CATEGORY="development" SHORT_DESC="A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="ISC" WEB_SITE="https://drobilla.net/software/serd.html" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://download.drobilla.net/$TARBALL" DEPENDS="gcc83-lib-base" BUILD_DEPENDS="gcc83" # 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() { export CC=gcc-83 export CXX=g++-83 ./waf configure --prefix=/usr && ./waf build && ./waf install --destdir=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/lib* $fs/usr/lib }