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