From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/erlang/PKGBUILD | 76 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 community/erlang/PKGBUILD (limited to 'community/erlang') diff --git a/community/erlang/PKGBUILD b/community/erlang/PKGBUILD new file mode 100644 index 000000000..c6f117d3c --- /dev/null +++ b/community/erlang/PKGBUILD @@ -0,0 +1,76 @@ +# $Id: PKGBUILD 92929 2013-06-19 13:52:02Z arodseth $ +# Maintainer: Lukas Fleischer +# Maintainer: Alexander Rødseth +# Contributor: Vesa Kaihlavirta +# Contributor: Sarah Hay +# Contributor: Tom Burdick +# Contributor: Ricardo Catalinas Jiménez + +pkgbase=erlang +pkgname=('erlang' 'erlang-unixodbc') +pkgver=R16B01 +pkgrel=1 +arch=('x86_64' 'i686') +url='http://www.erlang.org/' +license=('custom') +makedepends=('perl' 'mesa' 'lksctp-tools' 'unixodbc' 'wxgtk' 'wxgtk2.9') +source=("http://www.erlang.org/download/otp_src_${pkgver/_/-}.tar.gz" + "http://www.erlang.org/download/otp_doc_man_${pkgver/_/-}.tar.gz") +sha256sums=('da388bc07b8ebdd008f5bb6c3d2c280e358bd188b5aac3ea01e3a7436315abc0' + '71972049fbac73457fb6868be18068edce9f2c9fc2aeeab15f019d4217b6a8c2') + +build() { + cd "$srcdir/otp_src_${pkgver/_1/}" + + ./configure --prefix=/usr --enable-smp-support --with-odbc + make +} + +package_erlang() { + pkgdesc='General-purpose concurrent functional programming language developed by Ericsson' + depends=('ncurses' 'glu' 'wxgtk' 'wxgtk2.9' 'openssl') + optdepends=('erlang-unixodbc: database support' + 'java-environment: for Java support' + 'lksctp-tools: for SCTP support') + provides=('erlang-nox') + conflicts=('erlang-nox') + + cd "$srcdir/otp_src_${pkgver/_1/}" + + make DESTDIR="$pkgdir" install + + # Documentation + install -d "$pkgdir/usr/share/doc/erlang" + install -m0644 "$srcdir/otp_src_${pkgver/_1/}/README.md" \ + "$srcdir"/{README,COPYRIGHT} \ + "$pkgdir/usr/share/doc/erlang" + + # Compressed man pages + for page in "$srcdir/man/man?/*"; do gzip $page; done + cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang/" + + # License + install -Dm0644 "$srcdir/otp_src_${pkgver/_1/}/EPLICENCE" \ + "$pkgdir/usr/share/licenses/$pkgname/EPLICENCE" + + # Move over files that will be packaged as erlang-unixodbc + mkdir "$srcdir/unixodbc" + mv "$pkgdir/usr/lib/erlang/lib/odbc"* "$srcdir/unixodbc/" + mv "$pkgdir/usr/lib/erlang/man/man3/odbc.3.gz" "$srcdir" +} + +package_erlang-unixodbc() { + pkgdesc='Unixodbc support for Erlang' + depends=('unixodbc' 'erlang-nox') + + # Get the files that should be packaged as erlang-unixodbc + mkdir -p "$pkgdir/usr/lib/erlang/"{lib,man/man3} + mv "$srcdir/unixodbc/"* "$pkgdir/usr/lib/erlang/lib/" + mv "$srcdir/odbc.3.gz" "$pkgdir/usr/lib/erlang/man/man3/" + + # License + install -Dm0644 "$srcdir/otp_src_${pkgver/_1/}/EPLICENCE" \ + "$pkgdir/usr/share/licenses/$pkgname/EPLICENCE" +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf