Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 6049E78125E for ; Sun, 3 Apr 2022 21:53:47 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salkield.uk; s=key1; t=1649022349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9en1zJxYz3tNwnCcCSL+3T6DzJgcKtRdnaSwfgH8yro=; b=Z+MzRaH5SMl5sf68y+H3UlH0XMw4DLfwcMNcxjPZbubbnJDO88AuxfLBTY6E0doCX3ygkJ 7csIziDRvj8COdgCVwOXz9hGdXC/zn6UK5Ypu5pBNAFNDGc9TcWgF6q/t9nrEPhzsklBlb fZxjnLUEFyzB11LBQ0DAKAOJ8yktqDQ= From: Edd Salkield To: alpine-aports@lists.alpinelinux.org Cc: Edd Salkield Subject: [PATCH v2] testing/levmar-dev: new aport Date: Sun, 3 Apr 2022 22:45:14 +0100 Message-Id: <20220403214513.24235-1-edd@salkield.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: salkield.uk 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..7cf008d59c --- /dev/null +++ b/testing/levmar-dev/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Edd Salkield +# Maintainer: Edd Salkield +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() { + cmake -B build \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DNEED_F2C:BOOL=false + cmake --build build +} + +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.35.1