blob: bcb38557a080178d357d0933cd08506e8b1a2b18 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Security XIII <securityxiii at gmail dot com>
# Maintainer: Edvin Alvarado <ealvarado301 g-mail>
# Contributor: Security XIII <securityxiii at gmail dot com>
pkgname=nanominer-cuda
pkgver=3.7.7
pkgrel=1
pkgdesc="nanopool mining software"
arch=('any')
depends=('pciutils' 'bash')
license=('custom:nanopool')
conflicts=('nanominer')
install=$pkgname.install
url='https://github.com/nanopool/nanominer/releases'
sha256sums=("8e0005787dc8345e6d3a66e9770ef1b9b5142f6bcd91ea9a5610b70f5c1ca0e0"
"SKIP")
prepare() {
# copies config files in config_examples
mkdir -p config_examples
for FILE in config*.ini
do
cp -R $FILE ./config_examples/$FILE
done
# Avoids erasing existing config files to avoid erasing any user settings
for FILE in $pkgdir/opt/$pkgname/config*.ini
do
FILENAME=${FILE##*/}
for SRCFILE in config*.ini
do
if [ $FILENAME==$SRCFILE ]
then
rm $SRCFILE
fi
done
done
}
source=("https://github.com/nanopool/nanominer/releases/download/v$pkgver/nanominer-linux-$pkgver-cuda11.tar.gz"
"https://github.com/nanopool/nanominer/raw/master/Terms%20of%20Use%20Nanominer.pdf")
package() {
# Launcher
echo -e "#\!/bin/bash\ncd /opt/nanominer\nexec /opt/$pkgname/nanominer \$*" > nanominer.sh
install -Dm755 nanominer.sh "$pkgdir"/usr/bin/nanominer
# License
install -Dm644 Terms%20of%20Use%20Nanominer.pdf "$pkgdir"/usr/share/licenses/"$pkgname"/TOU_Nanominer.pdf
# Install
mkdir -p $pkgdir/opt/"$pkgname"
cp -R * $pkgdir/opt/"$pkgname"
}
|