PKGBUILDs/community/erlang-nox/PKGBUILD

75 lines
2.5 KiB
Bash
Raw Normal View History

2018-07-11 13:51:25 +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
pkgname=erlang-nox
2021-04-06 13:00:57 +00:00
pkgver=23.3.1
_docver=23.3
2018-07-11 13:51:25 +00:00
pkgrel=1
2018-09-28 12:58:45 +00:00
pkgdesc='General-purpose concurrent functional programming language (headless version)'
2018-11-28 13:33:49 +00:00
arch=(x86_64)
url='https://www.erlang.org/'
license=(Apache)
depends=(ncurses openssl)
makedepends=(fop git java-environment libxslt lksctp-tools unixodbc)
conflicts=(erlang)
2018-07-11 13:51:25 +00:00
optdepends=('erlang-unixodbc: database support'
'java-environment: for Java support'
'lksctp-tools: for SCTP support')
2018-11-28 13:33:49 +00:00
options=(staticlibs)
2018-07-11 13:51:25 +00:00
source=("git+https://github.com/erlang/otp.git#tag=OTP-$pkgver"
2019-09-18 14:11:12 +00:00
"https://www.erlang.org/download/otp_doc_man_$_docver.tar.gz"
2018-11-28 13:33:49 +00:00
epmd.conf
epmd.service
epmd.socket)
2018-07-11 13:51:25 +00:00
sha256sums=('SKIP'
2021-04-06 13:00:57 +00:00
'b890e99d3fe1b317ed083455985225550ebf74b4a8ec2af4c758e4ce6e2934ff'
2018-11-28 13:33:49 +00:00
'78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2'
2018-07-11 13:51:25 +00:00
'b121ec9053fb37abca5f910a81c526f93ec30fe13b574a12209223b346886a9e'
2018-11-28 13:33:49 +00:00
'998a759e4cea4527f9d9b241bf9f32527d7378d63ea40afa38443c6c3ceaea34')
2018-07-11 13:51:25 +00:00
prepare() {
2019-03-14 12:38:21 +00:00
cd otp
./otp_build autoconf
2018-07-11 13:51:25 +00:00
}
build() {
cd otp
./configure \
2019-03-14 12:38:21 +00:00
--enable-builtin-zlib \
2018-07-11 13:51:25 +00:00
--enable-smp-support \
2021-04-06 13:00:57 +00:00
--prefix=/usr \
2018-07-11 13:51:25 +00:00
--with-odbc \
--disable-pgo
make
}
package() {
make -C otp DESTDIR="$pkgdir" install
2021-04-06 13:00:57 +00:00
# services and configuration
2018-07-11 13:51:25 +00:00
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"
2021-04-06 13:00:57 +00:00
# readme and licenses
install -Dm644 otp/README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 otp/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 otp/CONTRIBUTING.md "$pkgdir/usr/share/doc/$pkgname/CONTRIBUTING.md"
install -Dm644 otp/AUTHORS "$pkgdir/usr/share/doc/$pkgname/AUTHORS"
# man pages
cp -r man "$pkgdir/usr/lib/erlang/"
# remove files that are included in the erlang-unixodbc package
rm -rf "$pkgdir/usr/lib/erlang/"{lib/odbc*,man/man3/odbc.3}
2018-07-11 13:51:25 +00:00
}
# getver: raw.githubusercontent.com/erlang/otp/maint/OTP_VERSION