wok annotate opensp/receipt @ rev 24941

memtest: add binutils 2.37 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 16 12:43:33 2022 +0000 (2022-04-16)
parents 23c3aed67cd9
children 65ff25c4de90
rev   line source
erjo@8463 1 # SliTaz package receipt.
erjo@8463 2
erjo@8463 3 PACKAGE="opensp"
erjo@8463 4 VERSION="1.5.2"
erjo@8463 5 CATEGORY="misc"
erjo@8463 6 SHORT_DESC="An implementation of DSSSL, a style language to format SGML or XML documents"
erjo@8463 7 MAINTAINER="remy.carel@free.fr"
pascal@15601 8 LICENSE="MIT"
erjo@8463 9 SOURCE="OpenSP"
erjo@8463 10 TARBALL="$SOURCE-$VERSION.tar.gz"
erjo@8463 11 WEB_SITE="http://openjade.sourceforge.net"
erjo@8463 12 WGET_URL="$SF_MIRROR/openjade/opensp/$VERSION/$TARBALL"
erjo@8463 13
pascal@15601 14 DEPENDS=""
pascal@15601 15 BUILD_DEPENDS="make gcc perl"
pascal@15601 16
pascal@24396 17 # What is the latest version available today?
pascal@24396 18 current_version()
pascal@24396 19 {
pascal@24396 20 wget -O - https://sourceforge.net/projects/openjade/files/opensp/ 2>/dev/null | \
pascal@24396 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24396 22 sed '/scope="row/!d;s|.*/opensp/||;s|/.*||;q'
pascal@24396 23 }
pascal@24396 24
erjo@8463 25 # Rules to configure and make the package.
erjo@8463 26 compile_rules()
erjo@8463 27 {
erjo@8463 28 cd $src
gokhlayeh@11573 29 ./configure --prefix=/usr --disable-doc-build --disable-dtddecl \
gokhlayeh@11573 30 $CONFIGURE_ARGS &&
erjo@8463 31 make &&
pascal@15601 32 make DESTDIR=$DESTDIR install
erjo@8463 33 }
erjo@8463 34
erjo@8463 35 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8463 36 genpkg_rules()
erjo@8463 37 {
erjo@8463 38 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share
erjo@8463 39
pascal@15601 40 cp -a $install/usr/bin $fs/usr
pascal@15601 41 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15601 42 cp -a $install/usr/share/OpenSP $fs/usr/share
erjo@8463 43 }
erjo@8463 44