Subject: [alpine-aports] [PATCH 1/2] testing/harminv: new aport.

From: Isaac Dunham <[email-masked]>
Date: Wed, 22 Jul 2015 22:08:37 -0700

---
 testing/harminv/APKBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 testing/harminv/APKBUILD

diff --git a/testing/harminv/APKBUILD b/testing/harminv/APKBUILD
new file mode 100644
index 0000000..921f849
--- /dev/null
+++ b/testing/harminv/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Isaac Dunham <[email-masked]>
+# Maintainer:
+pkgname=harminv
+pkgver=1.4
+pkgrel=0
+pkgdesc="Free program to solve the problem of harmonic inversion"
+url="http://ab-initio.mit.edu/wiki/index.php/Harminv"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="openblas-dev"
+makedepends="$depends_dev gfortran"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+source="http://ab-initio.mit.edu/harminv/harminv-$pkgver.tar.gz"
+
+_builddir="$srcdir"/harminv-$pkgver
+prepare() {
+	local i
+	cd "$_builddir"
+	for i in $source; do
+		case $i in
+		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+		esac
+	done
+}
+
+build() {
+	cd "$_builddir"
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info \
+		--localstatedir=/var \
+		--disable-static --enable-shared \
+		|| return 1
+	make || return 1
+}
+
+package() {
+	cd "$_builddir"
+	make DESTDIR="$pkgdir" install || return 1
+	rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="b95e24a9bc7e07d3d2202d1605e9e86f  harminv-1.4.tar.gz"
+sha256sums="538e9b7766abcb0bf9db74cf47de5c4e8dfe8d724b047ea68550a5ee4c43b5de  harminv-1.4.tar.gz"
+sha512sums="c3a5153bdd5ab4b160407bcd50f4843708c2f5924074fdfe88890e8770d6a874178a69e83cd615cdecce04d80a3a92133d435f7245c0a21962e1e18a14fb63f5  harminv-1.4.tar.gz"
-- 
2.4.6

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Isaac Dunham <[email-masked]>
Date: Wed, 22 Jul 2015 22:08:38 -0700

---
 testing/meep/APKBUILD | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 testing/meep/APKBUILD

diff --git a/testing/meep/APKBUILD b/testing/meep/APKBUILD
new file mode 100644
index 0000000..b1aed10
--- /dev/null
+++ b/testing/meep/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Isaac Dunham <[email-masked]>
+# Maintainer:
+pkgname=meep
+pkgver=1.3
+pkgrel=0
+pkgdesc="free finite-difference time-domain (FDTD) simulation software package developed at MIT to model electromagnetic systems"
+url="http://ab-initio.mit.edu/wiki/index.php/Meep"
+arch="all"
+license="GPL2+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev harminv-dev openblas-dev libctl-dev guile-dev
+	hdf5-dev gsl-dev gfortran gmp-dev fftw-dev"
+install=""
+# Omit -doc because it requires latex2html to build
+subpackages="$pkgname-dev"
+source="http://ab-initio.mit.edu/meep/meep-$pkgver.tar.gz"
+
+_builddir="$srcdir"/meep-$pkgver
+prepare() {
+	local i
+	cd "$_builddir"
+	for i in $source; do
+		case $i in
+		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+		esac
+	done
+}
+
+build() {
+	cd "$_builddir"
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info \
+		--localstatedir=/var \
+		--enable-portable-binary \
+		--with-blas=openblas --with-lapack=openblas \
+		|| return 1
+	make || return 1
+}
+
+package() {
+	cd "$_builddir"
+	make DESTDIR="$pkgdir" install || return 1
+	rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="18a5b9e18008627a0411087e0bb60db5  meep-1.3.tar.gz"
+sha256sums="564c1ff1b413a3487cf81048a45deabfdac4243a1a37ce743f4fcf0c055fd438  meep-1.3.tar.gz"
+sha512sums="4ad8d68f27d9971fe6dd4b8440f78d5b141fe747a80c50da55ecbc56a5beb0c2d31441fb46b54cac3c62d4cb34cb1ce6819c06bd2c54bc35f129ba683dc84aea  meep-1.3.tar.gz"
-- 
2.4.6

---