summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBruno Miguel Fernandes Silva2019-11-26 15:27:39 +0000
committerBruno Miguel Fernandes Silva2019-11-26 15:27:39 +0000
commitff1b4c57d44f73af419b101a387ce8372b0a1307 (patch)
tree5fe58490dd4bcdcc80c1bc3ffb4f7abef30a7b2d /PKGBUILD
downloadaur-ff1b4c57d44f73af419b101a387ce8372b0a1307.tar.gz
First commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..afd927e2114
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Silva <brunofernandes at ua dot pt>
+pkgname=xmr-stak-rx-git
+pkgver=r1463.e46dfe6
+pkgrel=1
+pkgdesc="Unified All-in-one Monero miner with randomx fork"
+arch=('x86_64')
+url="https://github.com/fireice-uk/xmr-stak/releases/tag/1.0.0-rx"
+license=('GPL3')
+makedepends=('git' 'cmake' 'opencl-headers' 'gcc7')
+depends=('libmicrohttpd' 'openssl' 'hwloc' 'cuda' 'ocl-icd')
+source=("${pkgname}::git+https://github.com/fireice-uk/xmr-stak.git#branch=xmr-stak-rx-dev")
+sha256sums=('SKIP'
+ 'b279c373afbce7cc8610c44f69a5e29a4b36969d131e2fd47229211a3903912a')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ cmake .
+ make
+}
+
+package() {
+ install -D -m755 "$srcdir/$pkgname/bin/xmr-stak-rx" -t "$pkgdir/usr/bin/"
+ install -D -m644 "$srcdir/$pkgname/bin/libxmr-stak-backend.a" -t "$pkgdir/usr/lib/"
+ install -D -m644 "$srcdir/$pkgname/bin/libxmr-stak-randomx.a" -t "$pkgdir/usr/lib/"
+ install -D -m644 "$srcdir/$pkgname/bin/libxmrstak_cuda_backend.so" -t "$pkgdir/usr/lib"
+ install -D -m644 "$srcdir/$pkgname/bin/libxmrstak_opencl_backend.so" -t "$pkgdir/usr/lib"
+}