[arch-commits] Commit in zn_poly/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Thu Oct 4 12:47:03 UTC 2018


    Date: Thursday, October 4, 2018 @ 12:47:02
  Author: arojas
Revision: 389492

Use upstream tarball

Modified:
  zn_poly/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-04 12:40:49 UTC (rev 389491)
+++ PKGBUILD	2018-10-04 12:47:02 UTC (rev 389492)
@@ -3,17 +3,18 @@
 
 pkgname=zn_poly
 pkgver=0.9.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Polynomial arithmetic over Z/nZ"
 arch=(x86_64)
-url="http://web.maths.unsw.edu.au/~davidharvey/code/zn_poly/"
+url="https://gitlab.com/sagemath/zn_poly/"
 license=(GPL)
 depends=(gmp)
 makedepends=(python2)
-source=("http://mirrors.mit.edu/sage/spkg/upstream/zn_poly/$pkgname-$pkgver.tar.gz")
-sha256sums=('d472965ddee240c701ae5822897a2a13eb8a4184864edabcb6c5b0ac34b0f74e')
+source=("https://gitlab.com/sagemath/zn_poly/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('d11aea5646cd72ea44ce8dd0d996cf2ea498e882ed96304a74481c4eb6e01093')
 
 build() {
+  cd $pkgname-$pkgver
   python2 makemakefile.py --prefix=/usr --cflags="$CFLAGS -fPIC" --cxxflags="$CXXFLAGS" --ldflags="$LDFLAGS" > makefile
   make
   make libzn_poly.so
@@ -20,6 +21,7 @@
 }
 
 package() {
+  cd $pkgname-$pkgver
   python2 makemakefile.py --prefix="$pkgdir"/usr > makefile
   make install
 # Install shared library



More information about the arch-commits mailing list