blob: 67651d4c205a8802ce66b29b015317796dce0068 (
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
|
#Maintainer: Dylan Delgado <dylan1496 at live dot com>
pkgname=mfaktc
pkgver=0.21
pkgrel=6
pkgdesc="A CUDA program for Mersenne prefactoring."
arch=('x86_64')
url="https://mersenneforum.org/showthread.php?t=12827"
license=('GPL3')
depends=('nvidia')
makedepends=('cuda')
source=("https://download.mersenne.ca/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
"mfaktc.ini"
"makeandparams.patch")
md5sums=('292d9a3bee013e9992ab199dfdfeece9'
'edf7197ee8d1e5d99ce8a9acf9287ea7'
'2acc9b787a77a2e6ba07cbd0904c776b')
sha256sums=('1973b5fae564035a33aa89bcb1a7e6dae571307a874e2eeb845e5b93939c2079'
'SKIP'
'SKIP')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}/src
patch -p2 < "../../../makeandparams.patch"
}
build () {
cd ${srcdir}/${pkgname}-${pkgver}/src
make -f Makefile all
}
package () {
cd ${srcdir}/${pkgname}-${pkgver}
install -Dm755 mfaktc.exe ${pkgdir}/usr/bin/mfaktc
cd ..
install -Dm755 mfaktc.ini ${pkgdir}/etc/mfaktc/mfaktc.ini
echo "A default mfaktc.ini file will be installed"
echo "in /etc/mfaktc/mfaktc.ini. Copy this to the"
echo "directory where you want to run mfaktc."
}
|