diff options
author | root <root@rshg054.dnsready.net> | 2012-04-13 00:01:45 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-13 00:01:45 +0000 |
commit | 7ff5465d0386f06bea97ef956397c305d6f7e07f (patch) | |
tree | 0665c968d614fda52d83b1a052766ea1d063e20f /community-testing | |
parent | d6dda60d85c9d4e616982b114b3c243f1faa9d79 (diff) |
Fri Apr 13 00:01:45 UTC 2012
Diffstat (limited to 'community-testing')
-rw-r--r-- | community-testing/erlang/PKGBUILD | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/community-testing/erlang/PKGBUILD b/community-testing/erlang/PKGBUILD new file mode 100644 index 000000000..c255213c7 --- /dev/null +++ b/community-testing/erlang/PKGBUILD @@ -0,0 +1,72 @@ +# $Id: PKGBUILD 69278 2012-04-12 02:34:43Z tdziedzic $ +# Maintainer: Lukas Fleischer <archlinux@cryptocrack.de> +# Contributor: Vesa Kaihlavirta <vesa@archlinux.org> +# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca> +# Contributor: Tom Burdick <thomas.burdick@wrightwoodtech.com> + +pkgname=erlang +pkgver=R15B01 +pkgrel=1 +pkgdesc='A small concurrent functional programming language developed by Ericsson.' +arch=(i686 x86_64) +url='http://www.erlang.org/index.html' +license=('custom') +depends=('ncurses' 'glibc') +makedepends=('java-environment' 'perl' 'openssl' 'wxgtk' 'unixodbc>=2.3.1' 'mesa') +optdepends=('wxgtk: for wx support' + 'mesa: for wx support' + 'unixodbc: database' + 'java-environment: for Java support') +options=('!makeflags') +source=("http://www.erlang.org/download/otp_src_${pkgver/./-}.tar.gz" + "http://www.erlang.org/download/otp_doc_man_${pkgver/./-}.tar.gz") +md5sums=('f12d00f6e62b36ad027d6c0c08905fad' + 'd87412c2a1e6005bbe29dfe642a9ca20') + +build() { + cd "$srcdir/otp_src_${pkgver/./-}" + + export ERTSVERSION=$(sed -n 's/^VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < erts/vsn.mk) + export ERLINTERFACEVERSION=$(sed -n 's/^EI_VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < \ + lib/erl_interface/vsn.mk) + + sed -i '/SSL_DYNAMIC_ONLY=/s:no:yes:' erts/configure + + CFLAGS="${CFLAGS} -fno-strict-aliasing" ./configure --prefix=/usr --enable-smp-support \ + --enable-threads + make +} + +package() { + cd "$srcdir/otp_src_${pkgver/./-}" + + make INSTALL_PREFIX="$pkgdir" install + + # fix prefix + cd "$pkgdir/usr/lib/erlang" + sed -i "s#$pkgdir##" bin/erl bin/start "erts-${ERTSVERSION}/bin/erl" \ + "erts-${ERTSVERSION}/bin/start" releases/RELEASES + + # fix symlinks + cd bin/ + ln -sf "../erts-${ERTSVERSION}/bin/epmd" + + cd "$pkgdir/usr/bin" + for file in *; do + ln -sfv "../lib/erlang/bin/$file" + done + + ln -s "../lib/erlang/lib/erl_interface-${ERLINTERFACEVERSION}/bin/erl_call" \ + "$pkgdir/usr/bin/erl_call" + + # install documentation + install -d "$pkgdir/usr/share/doc/erlang" + install -Dm0644 "$srcdir"/{COPYRIGHT,PR.template,README} "$pkgdir/usr/share/doc/erlang" + + # install man pages + cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang" + + # install license + install -Dm644 "$srcdir/otp_src_${pkgver/./-}/EPLICENCE" \ + "$pkgdir/usr/share/licenses/$pkgname/EPLICENCE" +} |