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