Subject: [PATCH] testing/levmar-dev: new aport

From: Edd Salkield <[email-masked]>
Date: Sun, 30 Jan 2022 02:06:49 +0000

https://users.ics.forth.gr/~lourakis/levmar/
Native ANSI C implementations of the Levenberg-Marquardt optimization algorithm
---
 testing/levmar-dev/APKBUILD | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 testing/levmar-dev/APKBUILD

diff --git a/testing/levmar-dev/APKBUILD b/testing/levmar-dev/APKBUILD
new file mode 100644
index 0000000000..ff5bfddb55
--- /dev/null
+++ b/testing/levmar-dev/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Edd Salkield <[email-masked]>
+# Maintainer: Edd Salkield <[email-masked]>
+pkgname=levmar-dev
+pkgver=2.6
+pkgrel=0
+pkgdesc="Native ANSI C implementations of the Levenberg-Marquardt optimization algorithm"
+url="https://users.ics.forth.gr/~lourakis/levmar/"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="cmake"
+depends="lapack-dev blas-dev"
+source="levmar-$pkgver.tar.gz::https://users.ics.forth.gr/~lourakis/levmar/levmar-$pkgver.tgz"
+builddir="$srcdir/levmar-$pkgver"
+
+build() {
+	mkdir build
+	cd build
+	cmake -DNEED_F2C:BOOL=false ..
+	make
+}
+
+check() {
+	./build/lmdemo
+}
+
+package() {
+	install -Dm644 build/liblevmar.a "$pkgdir"/usr/lib/liblevmar.a
+	install -Dm644 levmar.h "$pkgdir"/usr/include/levmar.h
+}
+
+sha512sums="
+5b4c64b63be9b29d6ad2df435af86cd2c2e3216313378561a670ac6a392a51bbf1951e96c6b1afb77c570f23dd8e194017808e46929fec2d8d9a7fe6cf37022b  levmar-2.6.tar.gz
+"
-- 
2.34.1