summaryrefslogtreecommitdiff
path: root/community/erlang-nox/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/erlang-nox/PKGBUILD')
-rw-r--r--community/erlang-nox/PKGBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/community/erlang-nox/PKGBUILD b/community/erlang-nox/PKGBUILD
new file mode 100644
index 000000000..77f98da86
--- /dev/null
+++ b/community/erlang-nox/PKGBUILD
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 92931 2013-06-19 14:22:24Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: 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>
+# Contributor: Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
+
+pkgname=erlang-nox
+pkgver=R16B01
+pkgrel=1
+pkgdesc='General-purpose concurrent functional programming language developed by Ericsson (headless version)'
+arch=('x86_64' 'i686')
+url='http://www.erlang.org/'
+license=('custom')
+depends=('ncurses' 'openssl')
+makedepends=('perl' 'lksctp-tools' 'unixodbc')
+provides=('erlang')
+conflicts=('erlang')
+optdepends=('erlang-unixodbc: database support'
+ 'java-environment: for Java support'
+ 'lksctp-tools: for SCTP support')
+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() {
+ 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"
+
+ # Remove files that are packaged as erlang-unixodbc
+ rm -r "$pkgdir/usr/lib/erlang/"{lib/odbc*,man/man3/odbc.3.gz}
+}
+
+# vim:set ts=2 sw=2 et: