summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandelinos2021-01-09 23:10:06 +0200
committerSandelinos2021-01-09 23:10:06 +0200
commit120fb6063566ca5601d99335681e0ce532878cfa (patch)
treec3e1cb8839fbadb861cd9f598fb71254fc562a59
parent0700196adbfd9978f4d6cd95f88cebdd2c41d0cf (diff)
downloadaur-cpuminer-opt-sugarchain.tar.gz
cleaned up PKGBUILD and added -fcommon to CFLAGS to fix compilation errors on current GCC versions
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD17
2 files changed, 11 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5ad2df99c8e..e0950fcb99f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,10 @@
pkgbase = cpuminer-opt-sugarchain
pkgdesc = Optimized Cpuminer for Sugarchain using YespowerSugar (based on Yespower 1.0.0)
pkgver = 3.8.8.1.7rc1
- pkgrel = 1
+ pkgrel = 2
url = https://sugarchain.org
arch = x86_64
- makedepends = automake
- depends = curl
depends = jansson
- depends = openssl
- depends = gmp
- depends = zlib
provides = cpuminer
conflicts = cpuminer
source = https://github.com/cryptozeny/cpuminer-opt-sugarchain/archive/v3.8.8.1.7rc1.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 7933af7e0eb..640d6fccd2f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,25 +2,28 @@
pkgname=cpuminer-opt-sugarchain
pkgver=3.8.8.1.7rc1
-pkgrel=1
+pkgrel=2
pkgdesc='Optimized Cpuminer for Sugarchain using YespowerSugar (based on Yespower 1.0.0)'
arch=('x86_64')
url="https://sugarchain.org"
licence=('GPL2')
-depends=('curl' 'jansson' 'openssl' 'gmp' 'zlib')
-makedepends=('automake')
+depends=('jansson')
+makedepends=()
provides=('cpuminer')
conflicts=('cpuminer')
source=("https://github.com/cryptozeny/cpuminer-opt-sugarchain/archive/v${pkgver}.tar.gz")
sha256sums=('269e9127dfc45d52646b369eefffdcc63ce2721d8685751f0e86f8104ec7e7fe')
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ sed -i "s/\" \.\/configure/ -fcommon\" \.\/configure/g" build-yespower.sh
+}
+
build() {
- tar xf "v${pkgver}.tar.gz"
- cd cpuminer-opt-sugarchain-${pkgver}
+ cd "${pkgname}-${pkgver}"
./build-yespower.sh
}
package() {
- mkdir -p $pkgdir/usr/bin
- mv $srcdir/cpuminer-opt-sugarchain-${pkgver}/cpuminer $pkgdir/usr/bin/
+ install -Dm755 $srcdir/$pkgname-${pkgver}/cpuminer $pkgdir/usr/bin/cpuminer
}