community/erlang to 23.2-3

This commit is contained in:
Kevin Mihelich 2021-01-11 15:00:25 +00:00
parent 6f958eec3c
commit 7cf0b0043e

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: loqs
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Vesa Kaihlavirta <vesa@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
@ -11,7 +12,7 @@
pkgbase=erlang
pkgname=(erlang erlang-unixodbc)
pkgver=23.2
pkgrel=2
pkgrel=3
_docver=23.2
arch=(x86_64)
url='https://www.erlang.org'
@ -35,12 +36,19 @@ sha256sums=('SKIP'
'998a759e4cea4527f9d9b241bf9f32527d7378d63ea40afa38443c6c3ceaea34')
prepare() {
# For Erlang to find wx-config-gtk3 as wx-config in the $PATH
mkdir -p bin
ln -s /usr/bin/wx-config bin/wx-config
ln -s /usr/bin/wx-config-gtk3 bin/wx-config
export PATH="$srcdir/bin:$PATH"
cd otp
# Patch for autoconf
git cherry-pick -n c5b04efb55304a7c6f569c33c8e5875a32877f31
patch -p1 -i ../erlang-22.0-dont-ignore-LDFLAGS.patch
patch -p1 -i ../wx3.patch
export PATH="$srcdir/bin:$PATH"
./otp_build autoconf
}
@ -60,7 +68,7 @@ build() {
package_erlang() {
pkgdesc='General-purpose concurrent functional programming language developed by Ericsson'
depends=(glu ncurses openssl wxgtk)
depends=(glu ncurses openssl wxgtk3)
optdepends=('erlang-unixodbc: database support'
'java-environment: for Java support'
'lksctp-tools: for SCTP support')