blob: 1844ccbe28dcafbaee2070731722860de69f9ceb (
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
|
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=waffles
pkgver=1.0.0
#_pkgver="${pkgver//./-}"
pkgrel=1
pkgdesc="Comprehensive collection of CLI tools for machine learning and data mining."
arch=('i686' 'x86_64')
url="http://gashler.com/mike/waffles/"
license=('CC0')
depends=('libpng' 'gcc-libs')
#source=(http://downloads.sourceforge.net/project/waffles/waffles/$_pkgver/waffles-$_pkgver-source.zip)
source=("$pkgname-$pkgver.tgz::https://github.com/mikegashler/waffles/archive/refs/tags/$pkgver.tar.gz")
md5sums=('f5abc0709890d732f35bde913dc4d57e')
prepare() {
cd "$srcdir/$pkgname-$pkgver/src"
sed -i 's/^CFLAGS.*$/& -Wno-error=terminate -Wno-error=catch-value -Wno-error=misleading-indentation/' GClasses/Makefile
sed -i 's/\tCFLAGS = .*$/& -Wno-error=terminate/' test/Makefile
}
build() {
cd "$srcdir/$pkgname-$pkgver/src"
make opt
# make docs
cd "$srcdir/$pkgname-$pkgver/web"
find ./ -type f -exec chmod -x {} +
find ./ -type f -name '*.bash' -exec chmod +x {} +
}
check() {
# make test
cd "$srcdir/$pkgname-$pkgver/bin"
#./test
}
package() {
cd "$srcdir/$pkgname-$pkgver"
# makefile does not seem to take any useful args
# binaries
install -d "$pkgdir/usr/bin/"
install -t "$pkgdir/usr/bin/" bin/waffles_*
# docs
install -d "$pkgdir/usr/share/doc/waffles"
cp -r web/* "$pkgdir/usr/share/doc/waffles"
}
|