wok-next annotate 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 |
rev | line source |
---|---|
al@19849 | 1 # SliTaz package receipt v2. |
al@19849 | 2 |
al@19849 | 3 PACKAGE="mathomatic" |
al@19849 | 4 VERSION="5232982" |
al@19849 | 5 CATEGORY="math" |
al@19849 | 6 SHORT_DESC="Portable, command-line, educational CAS and calculator software" |
al@19849 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19849 | 8 LICENSE="LGPL2.1" |
al@19849 | 9 WEB_SITE="https://en.wikipedia.org/wiki/Mathomatic" |
al@19849 | 10 |
al@19849 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19849 | 12 WGET_URL="https://github.com/rubicks/mathomatic/archive/$VERSION.tar.gz" |
al@19849 | 13 |
al@19849 | 14 BUILD_DEPENDS="automake libtool readline-dev" |
al@19849 | 15 SPLIT="mathomatic-optional mathomatic" |
al@19849 | 16 |
al@19849 | 17 # Rules to configure and make the package. |
al@19849 | 18 compile_rules() |
al@19849 | 19 { |
al@19849 | 20 autoreconf -fi && |
al@19849 | 21 |
al@19849 | 22 ./configure $CONFIGURE_ARGS && make && make install || return 1 |
al@19849 | 23 |
al@19849 | 24 install -m0755 primes/matho-mult primes/matho-sum primes/primorial \ |
al@19849 | 25 $install/usr/bin |
al@19849 | 26 |
al@19849 | 27 docdir="$install/usr/share/doc/mathomatic-16.0.5" |
al@19849 | 28 mkdir -p $docdir |
al@19849 | 29 cp doc/* $docdir |
al@19849 | 30 |
al@19849 | 31 appdir="$install/usr/share/applications" |
al@19849 | 32 mkdir -p $appdir |
al@19849 | 33 cp icons/*.desktop $appdir |
al@19849 | 34 |
al@19849 | 35 icodir="$install/usr/share/icons/hicolor" |
al@19849 | 36 for i in 16 48; do |
al@19849 | 37 mkdir -p "$icodir/${i}x$i/apps" |
al@19849 | 38 cp "$stuff/mathomatic$i.png" "$icodir/${i}x$i/apps/mathomatic.png" |
al@19849 | 39 done |
al@19849 | 40 |
al@19849 | 41 cook_pick_manpages mathomatic.1 lib/*.3 primes/*.1 |
al@19849 | 42 } |
al@19849 | 43 |
al@19849 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19849 | 45 genpkg_rules() |
al@19849 | 46 { |
al@19849 | 47 case $PACKAGE in |
al@19849 | 48 mathomatic-optional) |
al@19849 | 49 copy bin/matho-* primorial |
al@19849 | 50 CAT="math|additional utilities" |
al@19849 | 51 DEPENDS="mathomatic python" |
al@19849 | 52 ;; |
al@19849 | 53 mathomatic) |
al@19849 | 54 copy @std |
al@19849 | 55 remove_already_packed |
al@19849 | 56 DEPENDS="ncurses readline" |
al@19849 | 57 ;; |
al@19849 | 58 esac |
al@19849 | 59 } |