summaryrefslogtreecommitdiff
path: root/community/erlang
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-14 00:04:52 -0800
committerroot <root@rshg054.dnsready.net>2013-02-14 00:04:52 -0800
commit0bf564cf7a3d99207457267c75f92ceb67197537 (patch)
tree92c12891df8b8cc45a54b34413ecba167599bed5 /community/erlang
parent0671250710c3e7312a4693ac45ebbaacf471d1dc (diff)
Thu Feb 14 00:04:51 PST 2013
Diffstat (limited to 'community/erlang')
-rw-r--r--community/erlang/PKGBUILD53
1 files changed, 36 insertions, 17 deletions
diff --git a/community/erlang/PKGBUILD b/community/erlang/PKGBUILD
index 09db3dde0..c1409a81f 100644
--- a/community/erlang/PKGBUILD
+++ b/community/erlang/PKGBUILD
@@ -1,23 +1,19 @@
-# $Id: PKGBUILD 82512 2013-01-19 21:47:45Z arodseth $
-# Maintainer: Lukas Fleischer <archlinux@cryptocrack.de>
+# $Id: PKGBUILD 84206 2013-02-13 17:23:45Z 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
+pkgbase=erlang
+pkgname=('erlang' 'erlang-unixodbc')
pkgver=R15B03_1
-pkgrel=2
-pkgdesc='General-purpose concurrent functional programming language developed by Ericsson'
+pkgrel=3
arch=('x86_64' 'i686')
url='http://www.erlang.org/'
license=('custom')
-depends=('ncurses' 'glu' 'wxgtk' 'openssl')
-makedepends=('perl' 'mesa' 'lksctp-tools')
-optdepends=('unixodbc: for database support'
- 'java-environment: for Java support'
- 'lksctp-tools: for SCTP support')
+makedepends=('perl' 'mesa' 'lksctp-tools' 'unixodbc')
source=("http://www.erlang.org/download/otp_src_${pkgver/_/-}.tar.gz"
"http://www.erlang.org/download/otp_doc_man_${pkgver/_/-}.tar.gz")
sha256sums=('4bccac86dd76aec050252e44276a0283a0df9218e6470cf042a9b9f9dfc9476c'
@@ -26,28 +22,51 @@ sha256sums=('4bccac86dd76aec050252e44276a0283a0df9218e6470cf042a9b9f9dfc9476c'
build() {
cd "$srcdir/otp_src_${pkgver/_1/}"
- msg2 'Configuring...'
./configure --prefix=/usr --enable-smp-support --with-odbc
- msg2 'Compiling...'
make
}
-package() {
+package_erlang() {
+ pkgdesc='General-purpose concurrent functional programming language developed by Ericsson'
+ depends=('ncurses' 'glu' 'wxgtk' 'openssl')
+ optdepends=('erlang-unixodbc: database support'
+ 'java-environment: for Java support'
+ 'lksctp-tools: for SCTP support')
+
cd "$srcdir/otp_src_${pkgver/_1/}"
make DESTDIR="$pkgdir" install
- # Install documentation
+ # 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"
- # Install compressed man pages
+ # Compressed man pages
for page in "$srcdir/man/man?/*"; do gzip $page; done
- cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang"
+ 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')
+
+ # 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/"
- # Install license
+ # License
install -Dm0644 "$srcdir/otp_src_${pkgver/_1/}/EPLICENCE" \
"$pkgdir/usr/share/licenses/$pkgname/EPLICENCE"
}