wok annotate moonshiner/receipt @ rev 24985

Add python-future
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 10 07:46:58 2022 +0000 (2022-05-10)
parents 16df76e1fc6a
children 7dd01dedad38
rev   line source
pankso@4335 1 # SliTaz package receipt.
pankso@4335 2
pankso@4335 3 PACKAGE="moonshiner"
pankso@4335 4 VERSION="1.0"
pankso@4335 5 CATEGORY="office"
pankso@4335 6 SHORT_DESC="GUI for Ghostscript's PostScript-to-PDF converter."
pankso@4335 7 MAINTAINER="pankso@slitaz.org"
pascal@15583 8 LICENSE="GPL3"
pankso@4335 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15583 10 WEB_SITE="http://moonshiner.sourceforge.net/"
pascal@15583 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@15583 12
pankso@4335 13 DEPENDS="python pygtk ghostscript"
pankso@4335 14 BUILD_DEPENDS="python-dev pygtk-dev"
pankso@4335 15
pascal@24402 16 # What is the latest version available today?
pascal@24402 17 current_version()
pascal@24402 18 {
pascal@24402 19 wget -O - https://sourceforge.net/projects/moonshiner/files/moonshiner/ 2>/dev/null | \
pascal@24402 20 sed '/scope="row/!d;/snapshot/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 21 sed '/scope="row/!d;s|.*/moonshiner/||;s|/.*||;q'
pascal@24402 22 }
pascal@24402 23
pankso@4335 24 # Rules to configure and make the package.
pankso@4335 25 compile_rules()
pankso@4335 26 {
pascal@15583 27 python setup.py install --root=$DESTDIR
pankso@4335 28 }
pankso@4335 29
pankso@4335 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4335 31 genpkg_rules()
pankso@4335 32 {
pankso@4335 33 mkdir -p $fs/usr
pascal@15583 34 cp -a $install/usr/bin $fs/usr
pascal@15583 35 cp -a $install/usr/lib $fs/usr
pankso@4335 36 }