summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83f203e5385adac715bec7813f10e3f39cce2af9 (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: TheGoliath
#
pkgname=sgminer-gm
pkgver=5.5.5
pkgrel=2
pkgdesc="A multi-algo GPU miner from genesismining."
arch=('i686' 'x86_64')
url="https://github.com/nicehash/sgminer-gm"
license=('GPL3')
depends=('curl' 'ocl-icd' 'libtool' 'pkg-config' 'automake' 'autoconf')
makedepends=('opencl-headers')
optdepends=('opencl-nvidia: OpenCL implementation for NVIDIA'
            'opencl-catalyst: OpenCL implementation for AMD')
provides=('sgminer' 'sgminer-gm')
conflicts=('sgminer')
source=("${pkgname}::git+https://github.com/nicehash/sgminer-gm.git")
sha512sums=('SKIP')

prepare() {
    cd "$srcdir/$pkgname"
    git submodule update --init
}
build() {
    cd "$srcdir/$pkgname"
    ./autogen.sh
    ./configure --prefix="/usr"
    make
}
check() {
    cd "$srcdir/$pkgname"

    make check
}

package() {
    cd "$srcdir/$pkgname"
    make DESTDIR="$pkgdir" install 
}