wok annotate opensp/receipt @ rev 25564
Up memtest (6.20)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 11 15:58:49 2023 +0000 (18 months ago) |
parents | 080c1dff8494 |
children | 29df00e1e19d |
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" |
pascal@25465 | 11 WEB_SITE="https://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 |