summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5625b74721e8b5d2358dd724e3830e1183f58286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: 0x9fff00 <0x9fff00+git@protonmail.ch>
# Contributor: Sergiy Kukunin <sergey.kukunin@gmail.com>

pkgname=cpuminer-multi
_commit=04666ea6d0d7e00e4d520640aac29db5bcd65353
pkgver=1.3.7
pkgrel=5
pkgdesc='Multi-algo CPUMiner & Reference Cryptonote Miner (JSON-RPC 2.0)'
arch=('x86_64')
url="https://github.com/tpruvot/$pkgname"
license=('GPL')
depends=('curl' 'jansson' 'openssl')
makedepends=('git')
provides=('cpuminer')
conflicts=('cpuminer')
source=("git+$url.git#commit=$_commit"
        '0001-Fix-compile-error-with-GCC-11.patch')
sha256sums=('SKIP'
            '01f94fea8cc2753eee74a3d532b60d3e07319940f4b183bab80b5e9934009f92')

prepare() {
  cd "$pkgname"

  for p in "$srcdir"/*.patch; do
    patch -Np1 -i "$p"
  done
}

build() {
  cd "$pkgname"

  CFLAGS+=' -Wa,--noexecstack'
  ./autogen.sh
  ./configure --prefix=/usr --with-crypto --with-curl
  make
}

package() {
  cd "$pkgname"

  make DESTDIR="$pkgdir/" install
}