wok view soprano/receipt @ rev 24411

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 17:57:59 2022 +0000 (2022-02-09)
parents 579bfd0929b6
children be45df8e287f
line source
1 # SliTaz package receipt.
3 PACKAGE="soprano"
4 VERSION="2.8.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Soprano is the Qt/C++ RDF framework"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://soprano.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="libQtCore libQtNetwork raptor libiodbc"
14 BUILD_DEPENDS="cmake qmake Qt4-dev raptor-dev libiodbc-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/soprano/files/Soprano/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/Soprano/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p build && cd build
28 cmake \
29 -DCMAKE_INSTALL_PREFIX=/usr \
30 .. &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 cp -a $install/usr/lib/soprano $fs/usr/lib
41 cp -a $install/usr/share $fs/usr
42 }