wok-next view mathomatic/receipt @ rev 20567
xfe: update receipt; qt5: undo `fix math`
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 11 01:07:35 2018 +0300 (2018-04-11) |
parents | 2f19239eaed4 |
children | 556349764d57 |
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="mathomatic-optional mathomatic"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 autoreconf -fi &&
22 ./configure $CONFIGURE_ARGS && make && make install || return 1
24 install -m0755 primes/matho-mult primes/matho-sum primes/primorial \
25 $install/usr/bin
27 docdir="$install/usr/share/doc/mathomatic-16.0.5"
28 mkdir -p $docdir
29 cp doc/* $docdir
31 appdir="$install/usr/share/applications"
32 mkdir -p $appdir
33 cp icons/*.desktop $appdir
35 icodir="$install/usr/share/icons/hicolor"
36 for i in 16 48; do
37 mkdir -p "$icodir/${i}x$i/apps"
38 cp "$stuff/mathomatic$i.png" "$icodir/${i}x$i/apps/mathomatic.png"
39 done
41 cook_pick_manpages mathomatic.1 lib/*.3 primes/*.1
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 case $PACKAGE in
48 mathomatic-optional)
49 copy bin/matho-* primorial
50 CAT="math|additional utilities"
51 DEPENDS="mathomatic python"
52 ;;
53 mathomatic)
54 copy @std @rm
55 DEPENDS="ncurses readline"
56 ;;
57 esac
58 }