summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 070139f470d25536cd2bf84a5978ab7e0f697954 (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
# Maintainer: 0x9fff00 <0x9fff00+git@protonmail.ch>
# Contributor: Milian Reichardt <mreichardt95@gmail.com>

_pkgname=cpuminer-multi
pkgname=$_pkgname-git
pkgver=1.3.5.r20.gc207355
pkgrel=4
pkgdesc='Multi-algo CPUMiner & Reference Cryptonote Miner (JSON-RPC 2.0) - git version'
arch=('x86_64')
url="https://github.com/tpruvot/$_pkgname"
license=('GPL')
depends=('curl' 'jansson' 'openssl')
makedepends=('git')
provides=('cpuminer' 'cpuminer-multi')
conflicts=('cpuminer')
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"

  git describe --long | sed 's/^v//;s/-multi-\([0-9]*-g[0-9A-Fa-f]*\)$/-r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname"

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

package() {
  cd "$srcdir/$_pkgname"

  make DESTDIR="$pkgdir/" install
}