summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 10 insertions, 7 deletions
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
}