summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwereii2020-11-03 17:15:53 +0100
committerwereii2020-11-03 17:18:53 +0100
commit13aa47f1fe417207228e0d5f53d02c1080580551 (patch)
tree10743c1d8f4526d07ce8f9b0b662494ca7b2e821
parent4850019af66ac4889df7b28df4c06f25d1df9b61 (diff)
downloadaur-13aa47f1fe417207228e0d5f53d02c1080580551.tar.gz
upgpkg: asco 0.4.10-2
Fix failing build due to new gcc versions adding -fnocommon by default. Solution found by dom11990 <dom11990@gmail.com>.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD15
2 files changed, 12 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 40990421022..596bd0cac10 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = asco
pkgdesc = A SPICE Circuit Optimizer.
pkgver = 0.4.10
- pkgrel = 1
+ pkgrel = 2
url = http://asco.sourceforge.net
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 41561cfaea0..beed9221266 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,23 @@
-# Maintainer: Vladimir Cerny <blackvladimir@gmail.com>
+# Maintainer: wereii <wereii+aur@wereii.cz>
+# Contributor: Vladimir Cerny <blackvladimir@gmail.com>
+
pkgname=asco
pkgver=0.4.10
-pkgrel=1
+pkgrel=2
pkgdesc="A SPICE Circuit Optimizer."
arch=('i686' 'x86_64')
url="http://asco.sourceforge.net"
license=('GPL')
-depends=(glibc)
+depends=('glibc')
source=("http://downloads.sourceforge.net/sourceforge/asco/ASCO-$pkgver.tar.gz")
md5sums=('f8832f010f1f0d930878da903a59b028')
+prepare() {
+ cd "$srcdir/ASCO-$pkgver"
+ # append ' -fcommon' after CFLAGS of all Makefiles
+ find . -type f -iname "Makefile" -exec sed -i "/^CFLAGS =/ s/$/ -fcommon/" {} \;
+}
+
build() {
cd "$srcdir/ASCO-$pkgver"
make
@@ -18,4 +26,3 @@ build() {
package(){
install -D $srcdir/ASCO-$pkgver/asco "$pkgdir/usr/bin/asco"
}
-# vim:set ts=2 sw=2 et: