wok-next annotate mathomatic/receipt @ rev 21338

OpenSSL 1.0.2t -> 1.0.2u: overflow bug CVE-2019-1551
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Dec 21 08:55:46 2019 +0000 (2019-12-21)
parents 556349764d57
children
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@21020 15 SPLIT="$PACKAGE-optional $PACKAGE"
al@19849 16
al@20599 17 compile_rules() {
al@19849 18 autoreconf -fi &&
al@19849 19
al@20599 20 ./configure $CONFIGURE_ARGS &&
al@20599 21 fix libtool &&
al@20599 22 make &&
al@20599 23 make install || return 1
al@19849 24
al@19849 25 install -m0755 primes/matho-mult primes/matho-sum primes/primorial \
al@19849 26 $install/usr/bin
al@19849 27
al@20599 28 cook_pick_docs doc/*
al@19849 29
al@19849 30 appdir="$install/usr/share/applications"
al@19849 31 mkdir -p $appdir
al@19849 32 cp icons/*.desktop $appdir
al@19849 33
al@19849 34 icodir="$install/usr/share/icons/hicolor"
al@19849 35 for i in 16 48; do
al@19849 36 mkdir -p "$icodir/${i}x$i/apps"
al@19849 37 cp "$stuff/mathomatic$i.png" "$icodir/${i}x$i/apps/mathomatic.png"
al@19849 38 done
al@19849 39
al@19849 40 cook_pick_manpages mathomatic.1 lib/*.3 primes/*.1
al@19849 41 }
al@19849 42
al@20599 43 genpkg_rules() {
al@19849 44 case $PACKAGE in
al@19849 45 mathomatic-optional)
al@19849 46 copy bin/matho-* primorial
al@19849 47 CAT="math|additional utilities"
al@19849 48 DEPENDS="mathomatic python"
al@19849 49 ;;
al@19849 50 mathomatic)
al@20513 51 copy @std @rm
al@19849 52 DEPENDS="ncurses readline"
al@19849 53 ;;
al@19849 54 esac
al@19849 55 }