sagemath: update to 8.5, switch to pacman hooks #74

This commit is contained in:
Francesco Marinucci 2018-12-30 17:18:04 +01:00
parent 97a63798c7
commit a6e88efeda
2 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,7 @@
pkgbase=sagemath
pkgname=('sagemath' 'sagemath-doc' 'sagemath-src')
pkgver=8.0
pkgver=8.5
pkgrel=1
pkgdesc="Open Source Mathematics Software, free alternative to Magma, Maple, Mathematica, and Matlab - includes Sage-Notebook"
arch=('x86_64')
@ -20,11 +20,11 @@ optdepends=('imagemagick: some plotting functionality benefits from it'
'cairo: R plots')
options=('!makeflags')
install="${pkgbase}.install"
source=("$pkgbase-$pkgver.tar.gz::http://mirror.switch.ch/mirror/sagemath/src/sage-${pkgver}.tar.gz"
source=("$pkgbase-$pkgver.tar.gz::http://mirror.koddos.net/sagemath/src/sage-${pkgver}.tar.gz"
'sage.service'
'sage-notebook.desktop'
'sage-notebook.svg')
sha1sums=('d72271fdbb009fdb35a9d012302bb907c4579da9'
sha1sums=('d63b583176794232e525207b3671a26cfb8c1e3e'
'5196c3b61b1006dc13c3c1fce8b985758e76b0fc'
'd28dbdb3a48d924709593b6ecbac30cdd50517fd'
'51fb7257c69240f4266f6e69045156907e721771')

View File

@ -1,6 +1,5 @@
post_install() {
cd /usr/lib/sage
update-desktop-database -q
# add sagemath user for the daemon
useradd -r -c 'Sage daemon' -d /usr/lib/sage -s /bin/false sagemath
@ -43,7 +42,6 @@ post_upgrade() {
post_remove() {
# Update LaTeX db to remove SageTeX entries
update-desktop-database -q
if [ -f /usr/bin/texhash ]; then
/usr/bin/texhash /usr/share/texmf
fi