## Maintainer (Arch): gee

name=cpuminer
pkgname=$name
pkgver=2.3.2
pkgrel=5
pkgdesc="pooler's Litecoin cpuminer."
arch=('i686' 'x86_64' 'mips64el')
url="https://github.com/pooler/cpuminer"
depends=('curl' 'jansson')
license=('GPL2')
source=("${pkgname}-${pkgver}.zip::https://github.com/pooler/cpuminer/zipball/v${pkgver}"
	"libcurl.m4")

build() {
	cpuminer_srcdir=${srcdir}/pooler-cpuminer-*
	cd ${cpuminer_srcdir}
	autoreconf -fi -I ..
	./configure
	make ${MAKEFLAGS} CXXFLAGS="-O3 -march=native"
}


package() {
	cpuminer_srcdir=${srcdir}/pooler-cpuminer-*
	mkdir -p $pkgdir/usr/bin

	# get compiled binaries
	install -D -m755 ${cpuminer_srcdir}/minerd $pkgdir/usr/bin/
}
md5sums=('ca3200d6574fb6463640e8891555cd12'
         '5e22a13d29fa628c83c267cf9b4f3218')