blob: bd245f934474bba8ad46ea7319f90365e80ed94e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Stefan Husmann <stefan.husmann@t-systems.com>
# Contributor: Stéphane Gaudreault <Stephane.Gaudreault@gmail.com>
# Maintainer : Marcos Heredia <chelqo@gmail.com>
pkgname=yacas
pkgver=1.9.1
_docver=1.8.0
pkgrel=1
pkgdesc='Yet another computer algebra system'
url='http://www.yacas.org/'
screenshot='https://dl.dropbox.com/s/dy9evnpl13kdo21/yacas-console.png'
license=('GPL2')
groups=("mathematics")
arch=('i686' 'x86_64')
#--------------------------------------------------------------
_build_gui="ON"
if [ ${_build_gui} == "OFF" ]; then
depends=('glibc' 'gcc-libs')
makedepends=('gcc' 'cmake' 'perl')
else
depends=('dav1d' 'dbus' 'libbluray' 'libva' 'libvorbis' 'libxcursor' 'nspr' 'qt5-webengine' 'x264' 'x265' 'xvidcore' 'zstd')
makedepends=('gcc' 'cmake' 'perl' 'python-sphinx' 'python-sphinxcontrib-bibtex' 'python-sphinx_rtd_theme' 'npm' 'qt5-svg')
fi
#--------------------------------------------------------------
optdepends=('gnuplot' 'lynx' 'texmacs' 'fbreader: Reading EPUB manual')
conflicts=('yagy')
install=${pkgname}.install
noextract=('yacas.epub')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/grzegorzmazur/yacas/archive/v${pkgver}.tar.gz"
"https://buildmedia.readthedocs.org/media/epub/yacas/v${_docver}/yacas.epub"
"yacas.desktop"
"yacas-docs.desktop"
)
md5sums=('f908d52c6095d45bd69bc3e517dbee08' # yacas source
'becd320686b3b9aa2e6c39477f37ff06' # Epub manual
'eb776002fabe21623716ed2642f6d365' # yacas.desktop
'04d2a47c02fba5d88f337a404e02929c' # yacas-docs.desktop
)
build() {
cd ${srcdir}/${pkgname}-${pkgver}
[ -d build ] && rm -rf build
mkdir build
cd build
msg "### cmake" ; cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_CYACAS_CONSOLE=ON \
-DENABLE_CYACAS_GUI=${_build_gui} \
-DENABLE_CYACAS_UNIT_TESTS=OFF \
-DENABLE_CYACAS_BENCHMARKS=OFF \
-DENABLE_JYACAS=OFF \
-DENABLE_DOCS=ON \
-DENABLE_CYACAS_KERNEL=OFF \
-DCMAKE_BUILD_TYPE=Release
msg "### make" ; make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}/build
msg "### instalation " ; make DESTDIR=$pkgdir install
cd ..
_appdir=${pkgdir}/usr/share/applications
_pngdir=${pkgdir}/usr/share/pixmaps
_docdir=${pkgdir}/usr/share/doc/${pkgname}
_licdir=${pkgdir}/usr/share/licenses/${pkgname}
install -dm755 ${_appdir} ${_pngdir} ${_docdir} ${_licdir}
install -Dpm644 ${srcdir}/yacas.desktop ${_appdir}/
install -Dpm644 ${srcdir}/yacas-docs.desktop ${_appdir}/
[ ${_build_gui} == "OFF" ] && install -Dpm644 ${srcdir}/${pkgname}-${pkgver}/cyacas/yacas-gui/resources/pixmaps/yacas-gui.png ${_pngdir}
install -Dpm644 AUTHORS CODE_OF_CONDUCT.md ChangeLog README.rst TODO ${_docdir}/
install -Dpm644 ${srcdir}/yacas.epub ${pkgdir}/usr/share/yacas/
install -Dpm644 COPYING ${_licdir}/
(cd ${_docdir} ; ln -s ../../yacas/yacas.epub .)
}
|