[arch-commits] Commit in symmetrica/trunk (LICENSE PKGBUILD symmetrica-int32.patch)

Antonio Rojas arojas at archlinux.org
Mon Jan 20 19:01:11 UTC 2020


    Date: Monday, January 20, 2020 @ 19:01:09
  Author: arojas
Revision: 553239

Update to 3.0.0

Modified:
  symmetrica/trunk/PKGBUILD
Deleted:
  symmetrica/trunk/LICENSE
  symmetrica/trunk/symmetrica-int32.patch

------------------------+
 LICENSE                |   16 ----------------
 PKGBUILD               |   31 +++++++++++--------------------
 symmetrica-int32.patch |   37 -------------------------------------
 3 files changed, 11 insertions(+), 73 deletions(-)

Deleted: LICENSE
===================================================================
--- LICENSE	2020-01-20 19:00:15 UTC (rev 553238)
+++ LICENSE	2020-01-20 19:01:09 UTC (rev 553239)
@@ -1,16 +0,0 @@
-/*
-Copyright (c) 1987-2010 , symmetrica (at) symmetrica.de
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-20 19:00:15 UTC (rev 553238)
+++ PKGBUILD	2020-01-20 19:01:09 UTC (rev 553239)
@@ -2,38 +2,29 @@
 # Contributor: Rémy Oudompheng <oudomphe at clipper.ens.fr>
 
 pkgname=symmetrica
-pkgver=2.0
-pkgrel=7
+pkgver=3.0.0
+pkgrel=1
 pkgdesc="Algorithms for symmetric groups and classical groups"
 arch=(x86_64)
 url="http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/"
 depends=(glibc)
 license=(custom)
-source=('http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/SYM2_0_tar.gz' 'symmetrica-int32.patch' 'LICENSE')
-sha256sums=('bf52788dedc14c482e89f5e7efe8c60864a633314ddd446dd4602d5fdaca0ee2'
-            'b68792fe9e0adf08addc71437b61c4f002edb20e06d795df63a38ca2dd40d1df'
-            '0bf9103563587f077f2155d1e7f514f8389a3f9749ee3e690ce2d449a4bc699e')
+source=("https://gitlab.com/sagemath/symmetrica/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('116ae25854a9356063197760f84e6234058becd4da2ca15151b9514bc8324405')
 
 prepare() {
-  sed -i -e 's/-O2/$(CFLAGS)/' makefile
-# fix integer overflow on 64 bits
-  patch -p1 -i symmetrica-int32.patch
-
-# disable banner
-  sed -i 's|no_banner = FALSE|no_banner = TRUE|' de.c
+  cd $pkgname-$pkgver
+  autoreconf -fi
 }
 
 build() {
-  export CFLAGS="-fPIC $CFLAGS"
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr
   make
-  gcc -shared *.o -o libsymmetrica.so ${LDFLAGS}
 }
 
 package() {
-  install -D -m 755 libsymmetrica.so -t "$pkgdir"/usr/lib/
-  mkdir -p "$pkgdir"/usr/include/symmetrica/
-  install -m 644 *.h "$pkgdir"/usr/include/symmetrica/
-
-  mkdir -p "$pkgdir"/usr/share/licenses/symmetrica
-  install LICENSE "$pkgdir"/usr/share/licenses/symmetrica
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/symmetrica
 }

Deleted: symmetrica-int32.patch
===================================================================
--- symmetrica-int32.patch	2020-01-20 19:00:15 UTC (rev 553238)
+++ symmetrica-int32.patch	2020-01-20 19:01:09 UTC (rev 553239)
@@ -1,37 +0,0 @@
-diff -ru src/def.h c/def.h
---- src/def.h	2007-12-06 17:30:56.000000000 +0100
-+++ c/def.h	2013-10-19 18:42:55.118745730 +0200
-@@ -2,14 +2,9 @@
- /* INT should always be 4 byte */
- #ifndef DEF_H
- 
--
--#ifdef __alpha
--typedef  int INT;
--typedef unsigned  int  UINT;
--#else /* __alpha */
--typedef long INT;
--typedef unsigned long UINT;
--#endif /* __alpha */
-+#include <stdint.h>
-+typedef int32_t INT;
-+typedef uint32_t UINT;
- 
- #include <stdio.h>
- #include <memory.h>
-@@ -65,10 +60,13 @@
- 
- 
- /* definitionen fuer object.c */
--typedef INT OBJECTKIND;   /* 4 byte */
-+/* NOTE: partition code assumes that there is no unused space in the
-+ * object struct when an INT is stored. This requires both OBJECTKIND
-+ * and OBJECTSELF to have a size equal to a machine word. */
-+typedef intptr_t OBJECTKIND;
- 
- typedef union {
--	INT ob_INT;
-+	intptr_t ob_INT;
- 	INT * ob_INTpointer;
- 	char *ob_charpointer;
- 	struct bruch *ob_bruch;



More information about the arch-commits mailing list