wok-next view mathomatic/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 556349764d57
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mathomatic"
4 VERSION="5232982"
5 CATEGORY="math"
6 SHORT_DESC="Portable, command-line, educational CAS and calculator software"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://en.wikipedia.org/wiki/Mathomatic"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/rubicks/mathomatic/archive/$VERSION.tar.gz"
14 BUILD_DEPENDS="automake libtool readline-dev"
15 SPLIT="$PACKAGE-optional $PACKAGE"
17 compile_rules() {
18 autoreconf -fi &&
20 ./configure $CONFIGURE_ARGS &&
21 fix libtool &&
22 make &&
23 make install || return 1
25 install -m0755 primes/matho-mult primes/matho-sum primes/primorial \
26 $install/usr/bin
28 cook_pick_docs doc/*
30 appdir="$install/usr/share/applications"
31 mkdir -p $appdir
32 cp icons/*.desktop $appdir
34 icodir="$install/usr/share/icons/hicolor"
35 for i in 16 48; do
36 mkdir -p "$icodir/${i}x$i/apps"
37 cp "$stuff/mathomatic$i.png" "$icodir/${i}x$i/apps/mathomatic.png"
38 done
40 cook_pick_manpages mathomatic.1 lib/*.3 primes/*.1
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 mathomatic-optional)
46 copy bin/matho-* primorial
47 CAT="math|additional utilities"
48 DEPENDS="mathomatic python"
49 ;;
50 mathomatic)
51 copy @std @rm
52 DEPENDS="ncurses readline"
53 ;;
54 esac
55 }