aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-02 12:58:00 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 13:59:38 -0300
commit2d0c0fedf347b63ef84ed932c60deb7ee3f3b8bc (patch)
tree9028a675eb3104646b57e3384efd66bc8a95c4ca
parentea340e8f46265076e808a25547688fe4c24ddd52 (diff)
downloadaports-2d0c0fedf347b63ef84ed932c60deb7ee3f3b8bc.tar.gz
aports-2d0c0fedf347b63ef84ed932c60deb7ee3f3b8bc.tar.bz2
aports-2d0c0fedf347b63ef84ed932c60deb7ee3f3b8bc.tar.xz
community/fann: modernize
-rw-r--r--community/fann/APKBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/community/fann/APKBUILD b/community/fann/APKBUILD
index 82727c0dd4..ccfef6fa3b 100644
--- a/community/fann/APKBUILD
+++ b/community/fann/APKBUILD
@@ -2,24 +2,24 @@
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=fann
pkgver=2.2.0
-pkgrel=0
+pkgrel=1
pkgdesc="Fast Artificial Neural Network Library"
url="http://leenissen.dk/fann/"
arch="all"
license="LGPL-2.0-or-later"
makedepends="cmake"
subpackages="$pkgname-dev $pkgname-fixed:_lib $pkgname-float:_lib $pkgname-double:_lib"
-source="$pkgname-$pkgver.tar.gz::https://github.com/lib$pkgname/$pkgname/archive/$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
+source="$pkgname-$pkgver.tar.gz::https://github.com/libfann/fann/archive/$pkgver.tar.gz"
build() {
- cd "$builddir"
- cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/usr
- make
+ cmake -B build . \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make -C build
}
package() {
- make -C "$builddir" DESTDIR="$pkgdir" install
+ make -C build DESTDIR="$pkgdir" install
}
_lib() {