wok annotate sord/receipt @ rev 25041

Up fatattr (1.0.1), puzzles (20220128)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 27 17:15:46 2022 +0000 (2022-05-27)
parents 934055de50e2
children 0440e43a53b7
rev   line source
pascal@13383 1 # SliTaz package receipt.
pascal@13383 2
pascal@13383 3 PACKAGE="sord"
Hans-G?nter@23659 4 VERSION="0.16.4"
pascal@13383 5 CATEGORY="development"
pascal@13383 6 SHORT_DESC="A lightweight C library for storing RDF data in memory."
pascal@13383 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15593 8 LICENSE="ISC"
pascal@24894 9 WEB_SITE="https://drobilla.net/software/sord.html"
Hans-G?nter@21930 10
pascal@13383 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@13383 12 WGET_URL="http://download.drobilla.net/$TARBALL"
pascal@13383 13
Hans-G?nter@21930 14 DEPENDS="pcre serd"
Hans-G?nter@21930 15 BUILD_DEPENDS="pcre pkg-config serd-dev"
pascal@13383 16
pascal@24462 17 # What is the latest version available today?
pascal@24462 18 current_version()
pascal@24462 19 {
pascal@24462 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24462 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24462 22 }
pascal@24462 23
pascal@13383 24 # Rules to configure and make the package.
pascal@13383 25 compile_rules()
pascal@13383 26 {
pascal@13383 27 ./waf configure --prefix=/usr &&
pascal@13383 28 ./waf build &&
pascal@13383 29 ./waf install --destdir=$DESTDIR
pascal@13383 30 }
pascal@13383 31
pascal@13383 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13383 33 genpkg_rules()
pascal@13383 34 {
pascal@13383 35 mkdir -p $fs/usr/lib
Hans-G?nter@21930 36
Hans-G?nter@21930 37 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21930 38 cp -a $install/usr/lib/lib* $fs/usr/lib
pascal@13383 39 }