wok-next view mathomatic/receipt @ rev 20599

More fix libtool
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 17 00:06:41 2018 +0300 (2018-04-17)
parents d43bf7aae921
children d5aab818505e
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 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 }