wok view wv/receipt @ rev 24698
Up usbids (2022.02.23)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 17:29:51 2022 +0000 (2022-03-13) |
parents | ae303dd64237 |
children | f2b4a9eb8bdd |
line source
1 # SliTaz package receipt.
3 PACKAGE="wv"
4 VERSION="1.2.9"
5 CATEGORY="x-window"
6 SHORT_DESC="MS document manipulation library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.abisource.com/projects/"
11 WGET_URL="http://www.abisource.com/downloads/wv/$VERSION/$TARBALL"
13 DEPENDS="glib libgsf libpng libxml2 zlib"
14 BUILD_DEPENDS="libgsf libgsf-dev glib-dev libxml2-dev libpng-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \
20 sed '/\[DIR/!d;/arent/d;s|.*ref="||;s|/.*||' | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 sed -i 's|.ac_install_sh -d|mkdir -p|' configure
28 ./configure \
29 --prefix=/usr \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib $fs/usr/share
40 cp -a $install/usr/bin $fs/usr
41 chmod +x $fs/usr/bin/*
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp -a $install/usr/share/wv $fs/usr/share
44 }