wok-next diff mathomatic/receipt @ rev 20213

directfb: add libpng patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 04 22:29:34 2017 +0100 (2017-11-04)
parents
children d43bf7aae921
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mathomatic/receipt	Sat Nov 04 22:29:34 2017 +0100
     1.3 @@ -0,0 +1,59 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +PACKAGE="mathomatic"
     1.7 +VERSION="5232982"
     1.8 +CATEGORY="math"
     1.9 +SHORT_DESC="Portable, command-line, educational CAS and calculator software"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="LGPL2.1"
    1.12 +WEB_SITE="https://en.wikipedia.org/wiki/Mathomatic"
    1.13 +
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 +WGET_URL="https://github.com/rubicks/mathomatic/archive/$VERSION.tar.gz"
    1.16 +
    1.17 +BUILD_DEPENDS="automake libtool readline-dev"
    1.18 +SPLIT="mathomatic-optional mathomatic"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	autoreconf -fi &&
    1.24 +
    1.25 +	./configure $CONFIGURE_ARGS && make && make install || return 1
    1.26 +
    1.27 +	install -m0755 primes/matho-mult primes/matho-sum primes/primorial \
    1.28 +		$install/usr/bin
    1.29 +
    1.30 +	docdir="$install/usr/share/doc/mathomatic-16.0.5"
    1.31 +	mkdir -p $docdir
    1.32 +	cp doc/* $docdir
    1.33 +
    1.34 +	appdir="$install/usr/share/applications"
    1.35 +	mkdir -p $appdir
    1.36 +	cp icons/*.desktop $appdir
    1.37 +
    1.38 +	icodir="$install/usr/share/icons/hicolor"
    1.39 +	for i in 16 48; do
    1.40 +		mkdir -p "$icodir/${i}x$i/apps"
    1.41 +		cp "$stuff/mathomatic$i.png" "$icodir/${i}x$i/apps/mathomatic.png"
    1.42 +	done
    1.43 +
    1.44 +	cook_pick_manpages mathomatic.1 lib/*.3 primes/*.1
    1.45 +}
    1.46 +
    1.47 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.48 +genpkg_rules()
    1.49 +{
    1.50 +	case $PACKAGE in
    1.51 +		mathomatic-optional)
    1.52 +			copy bin/matho-* primorial
    1.53 +			CAT="math|additional utilities"
    1.54 +			DEPENDS="mathomatic python"
    1.55 +			;;
    1.56 +		mathomatic)
    1.57 +			copy @std
    1.58 +			remove_already_packed
    1.59 +			DEPENDS="ncurses readline"
    1.60 +			;;
    1.61 +	esac
    1.62 +}