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
|
2022-10-13 00:33:51 +00:00
|
|
|
pkgver=25.1.1
|
2022-07-31 14:40:45 +00:00
|
|
|
pkgrel=1
|
|
|
|
_docver=25.0
|
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)
|
2021-05-14 14:01:47 +00:00
|
|
|
url='https://erlang.org/'
|
2018-11-28 13:33:49 +00:00
|
|
|
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')
|
2022-01-26 13:57:10 +00:00
|
|
|
options=(staticlibs)
|
2021-05-14 14:01:47 +00:00
|
|
|
source=(epmd.conf
|
2018-11-28 13:33:49 +00:00
|
|
|
epmd.service
|
2021-05-14 14:01:47 +00:00
|
|
|
epmd.socket
|
2021-10-11 13:53:48 +00:00
|
|
|
"$url/download/otp_doc_man_$_docver.tar.gz"
|
2022-10-13 00:33:51 +00:00
|
|
|
"git+https://github.com/erlang/otp#commit=be6f05d34736fadf37328058f00e788cb88da61b") # tag: OTP-25.1.1
|
2021-05-14 14:01:47 +00:00
|
|
|
b2sums=('1675ac9bf948ab19e8b63077d870ccf356fcdbce14de2777f00b3488aa1ce34a5e0a5cdc0428707f744dee5940b12653a44e0ded0554de95ebb31bce4676ff87'
|
|
|
|
'1f765318bcd322ce697a48c064ccdb1bd107b4a84e164a87f62678391cb82a9ab17a397d679cf266e037a5a2d91772b85f7a97f9cc5478c0f18118743b30045f'
|
|
|
|
'c37706f5f6e2d49100104fb442ebf15edd6ee0a1e8038d0364794cf34fd3f02a61b9ad2706228b3327b85b0cadcd11aac6087e7c98408eae2d307a09191b6553'
|
2022-07-31 14:40:45 +00:00
|
|
|
'cb48044163b265fb339b774a854662705d1bdf52cfabf3d4a268538c5e53b984c3d26f05acea2f217a1bf6e838469564cef1a4c591d9af43980e1d8f422c43fd'
|
2021-05-14 14:01:47 +00:00
|
|
|
'SKIP')
|
2018-07-11 13:51:25 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd otp
|
2022-01-26 13:57:10 +00:00
|
|
|
#export CFLAGS+=' -ffat-lto-objects'
|
2021-05-14 14:01:47 +00:00
|
|
|
./otp_build autoconf
|
2018-07-11 13:51:25 +00:00
|
|
|
./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
|
2022-07-31 14:40:45 +00:00
|
|
|
cp -r -v man "$pkgdir/usr/lib/erlang/"
|
2021-04-06 13:00:57 +00:00
|
|
|
|
|
|
|
# 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
|