blob: a1723c59f1b5a4065b64237f1dc4f50c5e92b70d (
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
55
56
57
58
59
|
# Maintainer: KUMAX <kumax2048@pm.me>
_pkgbase=yafu
pkgname=yafu-git
pkgrel=1
pkgver=r468.ca48c65
pkgdesc="Automated integer factorization."
url=https://github.com/bbuhrow/yafu
license=("MIT")
arch=('x86_64')
conflicts=(${_pkgbase})
provides=('yafu' 'ysieve')
depends=('gmp' 'gmp-ecm')
source=(
"git+https://github.com/bbuhrow/yafu.git"
"git+https://github.com/bbuhrow/ytools.git"
"git+https://github.com/bbuhrow/ysieve.git"
msieve::"svn+svn://svn.code.sf.net/p/msieve/code/trunk"
)
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')
prepare() {
cd ${srcdir}/yafu
sed -i "s%^LIBS += -lecm /users/buhrow/src%#LIBS += -lecm /users/buhrow/src%" Makefile
sed -i "s/^\#LIBS += -lecm -lgmp -lytools -lysieve/LIBS += -lecm -lgmp -lytools -lysieve/" Makefile
}
pkgver() {
cd "${_pkgbase}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd ${srcdir}/ytools
make CC=gcc
cp libytools.a ${srcdir}/ysieve/
cd ${srcdir}/ysieve
make
cp libytools.a ${srcdir}/yafu/
cp libysieve.a ${srcdir}/yafu/
cd ${srcdir}/msieve
make all NO_ZLIB=1
cd ${srcdir}/yafu
make yafu CC=gcc NFS=1
}
package() {
cd ${srcdir}/ysieve
install -Dm644 ysieve ${pkgdir}/usr/bin/ysieve
cd ${srcdir}/yafu
install -Dm644 yafu ${pkgdir}/usr/bin/yafu
}
|