ARPREC AUR shared library fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur arprec-a/configure.ac arprec-b/configure.ac | |
--- arprec-a/configure.ac 2015-12-12 02:20:15.000000000 +0100 | |
+++ arprec-b/configure.ac 2018-12-13 22:15:12.498217400 +0100 | |
@@ -12,7 +12,7 @@ | |
# | |
# | |
# Process this file with autoconf to produce a configure script. | |
-define([ARPREC_PATCHLEVEL], 13) | |
+define([ARPREC_PATCHLEVEL], 19) | |
AC_PREREQ(2.60) | |
AC_INIT(arprec, 2.2.ARPREC_PATCHLEVEL, dhbailey@lbl.gov) | |
AC_CONFIG_SRCDIR([src/init.cpp]) | |
@@ -28,6 +28,10 @@ | |
AC_DEFINE_UNQUOTED([PATCH_VERSION],$PATCH_VERSION,[arprec patch number (sub minor version)]) | |
echo "configuring $PACKAGE $VERSION..." | |
+AC_SUBST(MAJOR_VERSION) | |
+AC_SUBST(MINOR_VERSION) | |
+AC_SUBST(PATCH_VERSION) | |
+ | |
AC_CONFIG_AUX_DIR(config) | |
AM_INIT_AUTOMAKE([nostdinc]) | |
AM_CONFIG_HEADER([config.h include/arprec/arprec_config.h]) | |
diff -Naur arprec-a/fortran/Makefile.am arprec-b/fortran/Makefile.am | |
--- arprec-a/fortran/Makefile.am 2015-12-12 02:20:15.000000000 +0100 | |
+++ arprec-b/fortran/Makefile.am 2018-12-13 22:07:39.393759000 +0100 | |
@@ -1,10 +1,13 @@ | |
+SHELL=/bin/bash | |
if HAVE_FORTRAN | |
AM_CPPFLAGS = -I$(top_builddir) -I$(top_builddir)/include -I$(top_srcdir)/include | |
LDADD = libarprec_f_main.la libarprecmod.la $(top_builddir)/src/libarprec.la $(FCLIBS) | |
lib_LTLIBRARIES = libarprecmod.la libarprec_f_main.la | |
libarprecmod_la_SOURCES = f_mp.cpp mp_mod.f mp_modm.f mp_modx.f | |
+libarprecmod_la_LDFLAGS = -version-info $$(( $(MAJOR_VERSION)+$(MINOR_VERSION) )):$(PATCH_VERSION):$(MINOR_VERSION) | |
libarprec_f_main_la_SOURCES = main.cpp | |
+libarprec_f_main_la_LDFLAGS = -version-info $$(( $(MAJOR_VERSION)+$(MINOR_VERSION) )):$(PATCH_VERSION):$(MINOR_VERSION) | |
if UPCASE_MODULE | |
MPCOMPLEXMOD = MPCOMPLEXMOD.$(module_ext) | |
diff -Naur arprec-a/src/Makefile.am arprec-b/src/Makefile.am | |
--- arprec-a/src/Makefile.am 2015-12-12 02:20:15.000000000 +0100 | |
+++ arprec-b/src/Makefile.am 2018-12-13 22:07:26.915659000 +0100 | |
@@ -1,3 +1,4 @@ | |
+SHELL=/bin/bash | |
SRC = add.cpp agmx.cpp ang.cpp angx.cpp bessel.cpp besselexp.cpp \ | |
c_mp.cpp complex.cpp cpr.cpp cshx.cpp cssh.cpp cssn.cpp cssx.cpp \ | |
dexc.cpp div.cpp divd.cpp divx.cpp dmc.cpp dotd.cpp eq.cpp \ | |
@@ -14,6 +15,7 @@ | |
small_inline.h | |
lib_LTLIBRARIES = libarprec.la | |
+libarprec_la_LDFLAGS = -version-info $$(( $(MAJOR_VERSION)+$(MINOR_VERSION) )):$(PATCH_VERSION):$(MINOR_VERSION) | |
libarprec_la_SOURCES = $(SRC) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Philip Abernethy<chais.z3r0 at gmail dot com> | |
pkgname=arprec | |
pkgver=2.2.19 | |
pkgrel=2 | |
pkgdesc="An arbitrary precision math library for C++ and Fortran-90." | |
url="http://crd.lbl.gov/~dhbailey/mpdist/" | |
arch=('x86_64') | |
license=('custom:LBNL-BSD') | |
makedepends=('catdoc' 'gcc-fortran') | |
changelog="${pkgname}.changelog" | |
source=("http://crd.lbl.gov/~dhbailey/mpdist/${pkgname}-${pkgver}.tar.gz" | |
"http://crd.lbl.gov/~dhbailey/mpdist/LBNL-BSD-License.doc" | |
"arprec-version-info.patch") | |
sha512sums=('97cf090398aa169e31711077efd26dc6da1f62291ab37b241b133634838bdd44743f85b86b861a3be18d2696ae9132afb6cd1871502bedb9cc17dfb63fde2632' | |
'5db2d242c249ccd6ed4e7fc59a6ebba7c83274b1cf330d0d12e97da32ea0da9b9b0b0c1f51c58f809658ea92f7afbf5d3a1c75d899f94ec38a0d91926608cf85' | |
'ca9e7d8f767384b26beec0545a89901f1feb84044ffb4de4409deef453dbcbc3e7898186d60888cf09b3c0264b7139697173c3d6eea559f7333f0db4d0049962') | |
build() { | |
cd ${pkgname} | |
patch -p1 -i ../arprec-version-info.patch | |
autoreconf -i | |
./configure --prefix=/usr --enable-shared --disable-static --enable-fortran && make | |
} | |
package() { | |
cd "${srcdir}/${pkgname}" | |
make DESTDIR="${pkgdir}/" install | |
install -Dm644 "${srcdir}/"${pkgname}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE | |
catdoc "${srcdir}"/LBNL-BSD-License.doc > "${pkgdir}"/usr/share/licenses/${pkgname}/LBNL-BSD-License.txt | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment