diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | PKGBUILD | 27 |
4 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..56143308df69 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = verthash-miner-bin + pkgdesc = GPU miner for the Verthash algorithm + pkgver = 0.6.1 + pkgrel = 1 + url = https://github.com/CryptoGraphics/VerthashMiner + arch = x86_64 + license = GPL-3.0 + provides = verthash-miner + conflicts = verthash-miner + source = https://github.com/CryptoGraphics/VerthashMiner/releases/download/0.6.1/VerthashMiner-0.6.1-CUDA11-linux.tar.gz + sha256sums = 67649a4dfe71d1f106aa1e98ed2245f1ea01c11759499dc2b29c5ba91da85597 + +pkgname = verthash-miner-bin + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..044f521569d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.pkg.* +*.tar.gz +*.zip
\ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 000000000000..4f09e42a93f2 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +.PHONY: post clean + +post: + makepkg --verifysource -f + makepkg --printsrcinfo > .SRCINFO + +clean: + git clean -fX diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20f9eff347a3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: David Barri <japgolly@gmail.com> +pkgname=verthash-miner-bin +pkgver=0.6.1 +pkgrel=1 +pkgdesc="GPU miner for the Verthash algorithm" +arch=('x86_64') +url="https://github.com/CryptoGraphics/VerthashMiner" +license=('GPL-3.0') +source=("https://github.com/CryptoGraphics/VerthashMiner/releases/download/$pkgver/VerthashMiner-$pkgver-CUDA11-linux.tar.gz") +sha256sums=('67649a4dfe71d1f106aa1e98ed2245f1ea01c11759499dc2b29c5ba91da85597') +provides=('verthash-miner') +conflicts=('verthash-miner') + +package() { + set -eu + + cd VerthashMiner-$pkgver-CUDA11-linux + + mkdir -p "$pkgdir/opt" + cp -r . "$pkgdir/opt/verthash-miner" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + mkdir -p "$pkgdir/usr/bin" + cd "$pkgdir/usr/bin" + ln -s ../../opt/verthash-miner/VerthashMiner verthash-miner +} |