PKGBUILDs/community/erlang/PKGBUILD

87 lines
2.8 KiB
Bash
Raw Normal View History

2018-07-11 13:50:46 +00:00
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# 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>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - configure with --disable-pgo to fix ARM FTBFS
pkgbase=erlang
2018-11-27 13:31:01 +00:00
pkgname=(erlang erlang-unixodbc)
2019-12-02 19:13:07 +00:00
pkgver=22.1.8
2018-07-11 13:50:46 +00:00
pkgrel=1
2019-09-18 13:07:05 +00:00
_docver=22.1
2018-11-27 13:31:01 +00:00
arch=(x86_64)
url='https://www.erlang.org'
2019-03-13 19:43:03 +00:00
license=(Apache)
2018-11-27 13:31:01 +00:00
makedepends=(fop git glu java-environment libxslt lksctp-tools
mesa perl unixodbc wxgtk)
options=(staticlibs)
2018-07-11 13:50:46 +00:00
source=("git+https://github.com/erlang/otp.git#tag=OTP-$pkgver"
2018-11-27 13:31:01 +00:00
"$url/download/otp_doc_man_$_docver.tar.gz"
2019-03-13 19:43:03 +00:00
epmd.conf epmd.service epmd.socket)
2018-07-11 13:50:46 +00:00
sha256sums=('SKIP'
2019-09-18 13:07:05 +00:00
'64f45909ed8332619055d424c32f8cc8987290a1ac4079269572fba6ef9c74d9'
2018-11-27 13:31:01 +00:00
'78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2'
2018-07-11 13:50:46 +00:00
'b121ec9053fb37abca5f910a81c526f93ec30fe13b574a12209223b346886a9e'
2018-11-27 13:31:01 +00:00
'998a759e4cea4527f9d9b241bf9f32527d7378d63ea40afa38443c6c3ceaea34')
2018-07-11 13:50:46 +00:00
prepare() {
2018-11-27 13:31:01 +00:00
cd otp && ./otp_build autoconf
2018-07-11 13:50:46 +00:00
}
build() {
cd otp
./configure \
--prefix=/usr \
--enable-builtin-zlib \
--enable-smp-support \
2019-03-13 19:43:03 +00:00
--with-odbc \
2018-07-11 13:50:46 +00:00
--disable-pgo
make
}
package_erlang() {
pkgdesc='General-purpose concurrent functional programming language developed by Ericsson'
2019-03-13 19:43:03 +00:00
depends=(ncurses glu wxgtk openssl)
2018-07-11 13:50:46 +00:00
optdepends=('erlang-unixodbc: database support'
'java-environment: for Java support'
'lksctp-tools: for SCTP support')
2019-03-13 19:43:03 +00:00
provides=(erlang-nox)
conflicts=(erlang-nox)
2018-07-11 13:50:46 +00:00
make -C otp DESTDIR="$pkgdir" install
# move files that belong to the erlang-unixodbc package
mkdir -p unixodbc
mv "$pkgdir/usr/lib/erlang/lib/odbc"* "$srcdir/unixodbc/"
# services and configuration
install -Dm644 epmd.service "$pkgdir/usr/lib/systemd/system/epmd.service"
install -Dm644 epmd.socket "$pkgdir/usr/lib/systemd/system/epmd.socket"
install -Dm644 epmd.conf "$pkgdir/etc/conf.d/epmd"
# readme and licenses
install -Dm644 otp/README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
install -Dm644 otp/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# man pages
cp -r man "$pkgdir/usr/lib/erlang/"
}
package_erlang-unixodbc() {
pkgdesc='Unixodbc support for Erlang'
2019-03-13 19:43:03 +00:00
depends=(unixodbc erlang-nox)
2018-07-11 13:50:46 +00:00
install -d "$pkgdir/usr/lib/erlang/lib"
mv unixodbc/* "$pkgdir/usr/lib/erlang/lib/"
install -Dm644 otp/LICENSE.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENCE.txt"
}
# getver: raw.githubusercontent.com/erlang/otp/maint/OTP_VERSION
# vim: ts=2 sw=2 et: