diff options
author | Isaac Dunham <ibid.ag@gmail.com> | 2015-07-18 16:40:05 -0700 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-07-20 06:26:40 +0000 |
commit | 2c1ba37f88361f5127a50a427c3d02dece6299cb (patch) | |
tree | fbfb3fb248a548034e10afdba1d7837528471e66 /testing/libctl | |
parent | c82fae0ec4c680752dee4ac59e87b7c431ff0aac (diff) | |
download | aports-2c1ba37f88361f5127a50a427c3d02dece6299cb.tar.bz2 aports-2c1ba37f88361f5127a50a427c3d02dece6299cb.tar.xz |
testing/libctl: new aport
libctl is MIT's glue for embedding guile in programs.
Diffstat (limited to 'testing/libctl')
-rw-r--r-- | testing/libctl/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/libctl/APKBUILD b/testing/libctl/APKBUILD new file mode 100644 index 0000000000..9f950c819e --- /dev/null +++ b/testing/libctl/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Isaac Dunham <ibid.ag@gmail.com> +# Maintainer: +pkgname=libctl +pkgver=3.2.2 +pkgrel=0 +pkgdesc="Guile-based library implementing flexible control files for scientific simulations" +url="http://ab-initio.mit.edu/wiki/index.php/Libctl" +arch="all" +license="GPL" +depends="" +depends_dev="guile-dev" +makedepends="$depends_dev gc-dev gfortran" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://ab-initio.mit.edu/libctl/libctl-$pkgver.tar.gz" + +_builddir="$srcdir"/libctl-$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-shared --disable-static \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="5fd7634dc9ae8e7fa70a68473b9cbb68 libctl-3.2.2.tar.gz" +sha256sums="8abd8b58bc60e84e16d25b56f71020e0cb24d75b28bc5db86d50028197c7efbc libctl-3.2.2.tar.gz" +sha512sums="646456c23490eb3e63e845d4866b16bd1d92b210f2279342560888bb4764e474b97e17ff34beb672d43afe4d42bbcbddbcf8bb49cedc23b886061a93de10e6df libctl-3.2.2.tar.gz" |