wok annotate strigi/receipt @ rev 25062

Up foomatic-db-nonfree (20210824)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 07 10:29:31 2022 +0000 (2022-06-07)
parents b7f9d3ba466d
children
rev   line source
pankso@5673 1 # SliTaz package receipt.
pankso@5673 2
pankso@5673 3 PACKAGE="strigi"
Hans-G?nter@23675 4 VERSION="0.7.8"
pankso@5673 5 CATEGORY="system-tools"
Hans-G?nter@21978 6 SHORT_DESC="A fast and light desktop search engine."
pankso@5673 7 MAINTAINER="pankso@slitaz.org"
pascal@15004 8 LICENSE="LGPL2"
Hans-G?nter@23675 9 WEB_SITE="https://www.vandenoever.info/software/strigi/"
Hans-G?nter@21978 10
Hans-G?nter@21978 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@23675 12 WGET_URL="${WEB_SITE}$TARBALL"
Hans-G?nter@21978 13
pankso@5673 14 SUGGESTED="strigi-client"
Hans-G?nter@21978 15 DEPENDS="dbus expat libQtCore libQtDBus libQtXml libxml2 sqlite"
Hans-G?nter@21978 16 BUILD_DEPENDS="$DEPENDS bzip2-dev bzlib cmake dbus-dev expat-dev \
Hans-G?nter@21978 17 libQtCore libQtDBus libxml2-dev qmake Qt4-dev sqlite-dev"
pascal@15004 18
pascal@24425 19 # What is the latest version available today?
pascal@24425 20 current_version()
pascal@24425 21 {
pascal@24425 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 24 }
pascal@24425 25
pankso@5673 26 # Rules to configure and make the package.
pankso@5673 27 compile_rules()
pankso@5673 28 {
Hans-G?nter@23675 29 mkdir build &&
Hans-G?nter@23675 30 cd build &&
Hans-G?nter@23675 31 cmake .. \
Hans-G?nter@23675 32 -DCMAKE_INSTALL_PREFIX=/usr &&
Hans-G?nter@21978 33 make &&
Hans-G?nter@21978 34 make install
pankso@5673 35 }
pankso@5673 36
pankso@5673 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5673 38 genpkg_rules()
pankso@5673 39 {
pankso@5673 40 mkdir -p $fs/usr/lib/$PACKAGE
Hans-G?nter@21978 41
Hans-G?nter@21978 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21978 43 cp -a $install/usr/lib/$PACKAGE/*.so* $fs/usr/lib/$PACKAGE
Hans-G?nter@21978 44 cp -a $install/usr/share $fs/usr
Hans-G?nter@21978 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21978 46
pankso@5673 47 # QT GUI split into strigi-client
Hans-G?nter@23675 48 rm -f $fs/usr/bin/strigiclient
pankso@5673 49 }