mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 04:34:36 +08:00
31 lines
909 B
Bash
31 lines
909 B
Bash
# $Id$
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
_dbname=elliptic_curves
|
|
pkgname=sage-data-$_dbname
|
|
pkgver=0.8
|
|
pkgrel=1
|
|
pkgdesc="Database of elliptic curves for Sage"
|
|
arch=('any')
|
|
url="http://www.sagemath.org"
|
|
license=('GPL')
|
|
depends=()
|
|
makedepends=('python' 'sqlite3')
|
|
source=("http://www.sagemath.org/packages/upstream/elliptic_curves/$_dbname-$pkgver.tar.bz2" "https://raw.githubusercontent.com/sagemath/sage/6ae960b3db36b628546c0fd3ea0f7f75154edb22/build/pkgs/elliptic_curves/spkg-install")
|
|
md5sums=('42fd8ee63c1193fab6c08c0e7523fe01'
|
|
'b74eff87bdc6e9df132bc50a7e3513c6')
|
|
|
|
package() {
|
|
export SAGE_SHARE="$pkgdir"/usr/share/sage
|
|
cd $_dbname-$pkgver
|
|
mkdir src
|
|
mv common ellcurves src
|
|
python ../spkg-install
|
|
|
|
# fix permissions
|
|
chmod 755 "$pkgdir"/usr/share/sage/ellcurves
|
|
chmod 644 "$pkgdir"/usr/share/sage/ellcurves/*
|
|
|
|
rm -r "$pkgdir"/usr/share/sage/ellcurves/{.r*,..r*}
|
|
}
|