blob: 30e9496362b457c677c47ccb3be81ea48c65143c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $Id: PKGBUILD 80658 2012-11-28 21:23:24Z arodseth $
# Maintainer: Lukas Fleischer <archlinux@cryptocrack.de>
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# 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
pkgver=R15B03
pkgrel=1
pkgdesc='General-purpose concurrent functional programming language developed by Ericsson'
arch=(i686 x86_64 mips64el)
url='http://www.erlang.org'
license=('custom')
depends=('ncurses' 'glu' 'wxgtk' 'openssl')
makedepends=('perl' 'mesa')
optdepends=('unixodbc: for database support')
if [ "$CARCH" != "mips64el" ]; then
optdepends+=('java-environment: for Java support')
fi
source=("http://www.erlang.org/download/otp_src_$pkgver.tar.gz"
"http://www.erlang.org/download/otp_doc_man_$pkgver.tar.gz")
sha256sums=('d1ee5dd3833537ad7533f2deaf164936508c55c992c2b930f0c4c4559d40aa12'
'0a5a01f8c6050551c1ba0591de42731a6640370e7527fae81cdfe3d3d6af0a6b')
build() {
cd "$srcdir/otp_src_$pkgver"
msg2 'Configuring...'
./configure --prefix=/usr --enable-smp-support
msg2 'Compiling...'
make
}
package() {
cd "$srcdir/otp_src_$pkgver"
make DESTDIR="$pkgdir" install
# Install documentation
install -d "$pkgdir/usr/share/doc/erlang"
install -m0644 "$srcdir/otp_src_$pkgver/README.md" \
"$srcdir"/{README,COPYRIGHT} \
"$pkgdir/usr/share/doc/erlang"
# Install compressed man pages
for page in "$srcdir/man/man?/*"; do gzip $page; done
cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang"
# Install license
install -Dm0644 "$srcdir/otp_src_$pkgver/EPLICENCE" \
"$pkgdir/usr/share/licenses/$pkgname/EPLICENCE"
}
# vim:set ts=2 sw=2 et:
|