[arch-commits] Commit in (sympow sympow/trunk sympow/trunk/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Dec 20 23:40:21 UTC 2014
Date: Sunday, December 21, 2014 @ 00:40:21
Author: arojas
Revision: 124233
Splitting sage-mathematics
Added:
sympow/
sympow/trunk/
sympow/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Added: sympow/trunk/PKGBUILD
===================================================================
--- sympow/trunk/PKGBUILD (rev 0)
+++ sympow/trunk/PKGBUILD 2014-12-20 23:40:21 UTC (rev 124233)
@@ -0,0 +1,37 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=sympow
+pkgver=1.018.1
+pkgrel=1
+pkgdesc="A a package to compute special values of symmetric power elliptic
+curve L-functions"
+arch=('i686' 'x86_64')
+url="http://www.sagemath.org"
+license=('GPL')
+depends=('glibc')
+makedepends=('pari')
+source=("http://www.sagemath.org/packages/upstream/$pkgname/$pkgname-$pkgver.tar.bz2")
+md5sums=('b6cbb7488870d70d92d11176049cb91b')
+
+build() {
+ cd $pkgname-$pkgver
+
+ ./Configure
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ mkdir -p "$pkgdir"/usr/lib/sympow
+ mv sympow *.gp new_data datafiles "$pkgdir"/usr/lib/sympow
+
+ cd "$pkgdir"/usr/lib/sympow/datafiles
+
+ for file in *.txt; do
+ ../sympow -txt2bin "$(grep -c AT $file)" <$file ${file/txt/bin}
+ done
+
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s /usr/lib/sympow/sympow "$pkgdir"/usr/bin/sympow
+}
More information about the arch-commits
mailing list