wok view libwmf/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 86790a278e70
children b0069c845544
line source
1 # SliTaz package receipt.
3 PACKAGE="libwmf"
4 VERSION="0.2.8.4"
5 CATEGORY="misc"
6 SHORT_DESC="library for converting WMF files"
7 MAINTAINER="monghitri@aruba.it"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://wvware.sourceforge.net/libwmf.html"
11 WGET_URL="https://sourceforge.net/projects/wvware/files/$PACKAGE/$VERSION/$TARBALL"
13 DEPENDS="libpng jpeg libgd gdk-pixbuf expat"
14 BUILD_DEPENDS="libpng-dev jpeg-dev libgd-dev gdk-pixbuf-dev expat-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/wvware/files/libwmf/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/libwmf/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/^mkdirprog.*$/mkdirprog="mkdir -p"/' install-sh
28 ./configure $CONFIGURE_ARGS &&
29 make &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share/libwmf $fs/usr/lib
37 cp -a $install/usr/bin $fs/usr/
38 cp -a $install/usr/share/libwmf/fonts $fs/usr/share/libwmf/
39 cp -a $install/usr/lib $fs/usr/
40 find $fs/usr/ | while read f ; do
41 case "$f" in
42 *a) rm -f $f
43 esac
44 done
45 }