2018-07-11 13:50:46 +00:00
|
|
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
2021-01-11 15:00:25 +00:00
|
|
|
# Contributor: loqs
|
2018-07-11 13:50:46 +00:00
|
|
|
# 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
|
|
|
|
|
2024-05-01 15:50:20 +00:00
|
|
|
pkgname=erlang
|
2024-07-20 10:25:39 +00:00
|
|
|
pkgver=27.0.1
|
|
|
|
_docver=27.0
|
2024-06-15 05:37:57 +00:00
|
|
|
pkgrel=1
|
2023-12-16 23:49:41 +00:00
|
|
|
# https://github.com/erlang/otp/tags
|
2024-07-20 10:25:39 +00:00
|
|
|
_commit=ee9628e7ed09ef02e767994a6da5b7a225316aaa # OTP-27.0.1
|
2018-11-27 13:31:01 +00:00
|
|
|
arch=(x86_64)
|
2021-05-12 20:23:49 +00:00
|
|
|
url='https://erlang.org'
|
2019-03-13 19:43:03 +00:00
|
|
|
license=(Apache)
|
2024-05-01 13:02:22 +00:00
|
|
|
makedepends=(fop git glu java-environment libxslt lksctp-tools mesa perl wxwidgets-gtk3)
|
2022-01-26 13:56:42 +00:00
|
|
|
options=(staticlibs)
|
2021-05-12 20:23:49 +00:00
|
|
|
source=(epmd.conf
|
2020-12-22 16:18:25 +00:00
|
|
|
epmd.service
|
2021-05-12 20:23:49 +00:00
|
|
|
epmd.socket
|
2024-07-20 10:25:39 +00:00
|
|
|
"https://github.com/erlang/otp/releases/download/OTP-$_docver/otp_doc_man_$_docver.tar.gz"
|
2023-12-16 23:49:41 +00:00
|
|
|
"git+https://github.com/erlang/otp#commit=$_commit")
|
2021-05-12 20:23:49 +00:00
|
|
|
b2sums=('1675ac9bf948ab19e8b63077d870ccf356fcdbce14de2777f00b3488aa1ce34a5e0a5cdc0428707f744dee5940b12653a44e0ded0554de95ebb31bce4676ff87'
|
|
|
|
'1f765318bcd322ce697a48c064ccdb1bd107b4a84e164a87f62678391cb82a9ab17a397d679cf266e037a5a2d91772b85f7a97f9cc5478c0f18118743b30045f'
|
|
|
|
'c37706f5f6e2d49100104fb442ebf15edd6ee0a1e8038d0364794cf34fd3f02a61b9ad2706228b3327b85b0cadcd11aac6087e7c98408eae2d307a09191b6553'
|
2024-06-15 05:37:57 +00:00
|
|
|
'b55614bc3c795813eb2d73dc990f740efc8408a3639d98569adb9718ee140eb04ac2289ca3cd764d2610ac2138dfd6173b50bcae58b3971b51f4819cc33420e3'
|
2024-07-20 10:25:39 +00:00
|
|
|
'99300d27abe6fc6a5c1ace5315569b4abf17913488aafa7937fcc57138cc44cf7d0e28f6590b0e97c4018d55aa00aae84295aa4f1161ef036f47b6edb5113510')
|
2018-07-11 13:50:46 +00:00
|
|
|
|
|
|
|
prepare() {
|
2024-07-20 10:25:39 +00:00
|
|
|
# Adjust how LDFLAGS are handled
|
2024-05-01 13:02:22 +00:00
|
|
|
sed -i 's/^LDFLAGS = /LDFLAGS += /g' otp/lib/megaco/src/flex/Makefile.in
|
2023-12-07 19:01:15 +00:00
|
|
|
|
2024-07-20 10:25:39 +00:00
|
|
|
# Let the Java bindings support version 11 or later, ref https://gitlab.archlinux.org/archlinux/packaging/packages/erlang/-/issues/1
|
2023-12-07 19:01:15 +00:00
|
|
|
sed -i 's/^JAVA_OPTIONS =/JAVA_OPTIONS = --release 11/g' otp/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile
|
2018-07-11 13:50:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2021-05-12 20:23:49 +00:00
|
|
|
cd otp
|
2024-05-03 12:25:52 +00:00
|
|
|
|
|
|
|
#export CFLAGS+=' -ffat-lto-objects'
|
2021-05-12 20:23:49 +00:00
|
|
|
./otp_build autoconf
|
2018-07-11 13:50:46 +00:00
|
|
|
./configure \
|
2023-06-12 12:28:16 +00:00
|
|
|
--enable-threads \
|
|
|
|
--enable-shared-zlib \
|
|
|
|
--enable-ssl=dynamic-ssl-lib \
|
2021-05-12 20:23:49 +00:00
|
|
|
--prefix=/usr \
|
2024-05-01 13:02:22 +00:00
|
|
|
--without-odbc \
|
2018-07-11 13:50:46 +00:00
|
|
|
--disable-pgo
|
2024-05-03 12:25:52 +00:00
|
|
|
|
2024-03-12 12:49:25 +00:00
|
|
|
DOC_TARGETS=chunks make all
|
|
|
|
DOC_TARGETS=chunks make docs
|
2018-07-11 13:50:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_erlang() {
|
|
|
|
pkgdesc='General-purpose concurrent functional programming language developed by Ericsson'
|
2022-07-15 00:20:47 +00:00
|
|
|
depends=(glu ncurses openssl webkit2gtk wxwidgets-gtk3)
|
2024-05-01 13:02:22 +00:00
|
|
|
optdepends=('java-environment: for Java support'
|
2018-07-11 13:50:46 +00:00
|
|
|
'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
|
|
|
|
2020-12-22 16:18:25 +00:00
|
|
|
export PATH="$srcdir/bin:$PATH"
|
2023-02-03 00:03:25 +00:00
|
|
|
make -C otp DESTDIR="$pkgdir" DOC_TARGETS=chunks install install-docs
|
2018-07-11 13:50:46 +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"
|
|
|
|
|
2024-07-20 10:25:39 +00:00
|
|
|
cp -r man "$pkgdir/usr/lib/erlang/"
|
2018-07-11 13:50:46 +00:00
|
|
|
|
2024-07-20 10:25:39 +00:00
|
|
|
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" otp/{AUTHORS,CONTRIBUTING.md,README.md}
|
|
|
|
install -Dm644 otp/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2018-07-11 13:50:46 +00:00
|
|
|
}
|