diff options
author | Andrea Feletto | 2020-07-25 13:01:44 +0200 |
---|---|---|
committer | Andrea Feletto | 2020-07-25 13:01:44 +0200 |
commit | 93473cede81c62193fedab15ba051ccf05a3a5cf (patch) | |
tree | 2e5a90aeefba4da716153036a2220bde6f7d5dff | |
download | aur-93473cede81c62193fedab15ba051ccf05a3a5cf.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | inline-fix.diff | 82 |
3 files changed, 138 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cd9479aae950 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = archimedes + pkgdesc = Semiconductor device simulations. + pkgver = 2.0.0 + pkgrel = 1 + url = https://www.gnu.org/software/archimedes/ + arch = x86_64 + license = GPL3 + provides = archimedes + source = http://ftp.gnu.org/gnu/archimedes/archimedes-2.0.0.tar.gz + source = inline-fix.diff + sha256sums = SKIP + sha256sums = SKIP + +pkgname = archimedes + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fc95731fd42b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Archimedes + +# Maintainer: Andrea Feletto <andrea@andreafeletto.com> + +pkgname=archimedes +pkgver=2.0.0 +pkgrel=1 +pkgdesc='Semiconductor device simulations.' +arch=('x86_64') +url="https://www.gnu.org/software/$pkgname/" +license=('GPL3') +depends=() +makedepends=() +provides=('archimedes') +source=( + "http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" + 'inline-fix.diff' +) +sha256sums=('SKIP' 'SKIP') + +prepare() { + cd "$pkgname-$pkgver" + patch -p0 < "$srcdir/inline-fix.diff" +} + +build() { + cd "$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +check() { + cd "$pkgname-$pkgver" + make check +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} + diff --git a/inline-fix.diff b/inline-fix.diff new file mode 100644 index 000000000000..fafe1351c194 --- /dev/null +++ b/inline-fix.diff @@ -0,0 +1,82 @@ +Common subdirectories: src/.deps and src2/.deps +diff -u src/extrema.h src2/extrema.h +--- src/extrema.h 2011-08-26 15:43:28.000000000 +0200 ++++ src2/extrema.h 2020-07-25 12:42:07.091063022 +0200 +@@ -32,7 +32,7 @@ + + // ********************************************** + +-inline real minimus(real x,real y) ++static inline real minimus(real x,real y) + { + /* this function returns the minimum between x and y */ + +@@ -42,7 +42,7 @@ + + // ********************************************** + +-inline real maximus(real x,real y) ++static inline real maximus(real x,real y) + { + /* this function returns the maximum between x and y */ + +diff -u src/mm2.h src2/mm2.h +--- src/mm2.h 2011-08-26 15:43:28.000000000 +0200 ++++ src2/mm2.h 2020-07-25 12:42:21.077824613 +0200 +@@ -30,7 +30,7 @@ + + // Function used in the Jang-Tadmor method + +-inline real MM2(real x,real a,real b) ++static inline real MM2(real x,real a,real b) + { + return MM(x*MM(a,b),0.5*(a+b)); + } +diff -u src/mm.h src2/mm.h +--- src/mm.h 2011-08-26 15:43:27.000000000 +0200 ++++ src2/mm.h 2020-07-25 12:42:29.911217918 +0200 +@@ -30,7 +30,7 @@ + + // Function used in the Jang-Tadmor method + +-inline real MM(real a,real b) ++static inline real MM(real a,real b) + { + return 0.5*(sign(1.,a)+sign(1.,b))*minimus(fabs(a),fabs(b)); + } +diff -u src/particlecreation.h src2/particlecreation.h +--- src/particlecreation.h 2011-08-29 11:23:40.000000000 +0200 ++++ src2/particlecreation.h 2020-07-25 12:42:40.087953699 +0200 +@@ -34,7 +34,7 @@ + // edge = 2 Upper edge + // edge = 3 Left edge + +-inline ++static inline + void + creation(int i,real t,int edge) + { +diff -u src/random.h src2/random.h +--- src/random.h 2011-08-26 15:43:21.000000000 +0200 ++++ src2/random.h 2020-07-25 12:42:48.991347521 +0200 +@@ -30,7 +30,7 @@ + + // a simple (but well working...) generator of random numbers + +-inline ++static inline + real + rnd(void){ + ISEED = fmod(1027.*ISEED, 1048576.); +diff -u src/sign.h src2/sign.h +--- src/sign.h 2011-08-26 15:43:22.000000000 +0200 ++++ src2/sign.h 2020-07-25 12:42:57.401404684 +0200 +@@ -30,7 +30,7 @@ + + // This function is exactly the same as the FORTRAN SIGN(A,B) function. + +-inline real sign(real a,real b) ++static inline real sign(real a,real b) + { + if(b>=0.) return(+1.*fabs(a)); + else return(-1.*fabs(a)); |