diff --git a/community/erlang-nox/PKGBUILD b/community/erlang-nox/PKGBUILD index 4a5952111..ce1020e43 100644 --- a/community/erlang-nox/PKGBUILD +++ b/community/erlang-nox/PKGBUILD @@ -9,8 +9,8 @@ # - configure with --disable-pgo to fix ARM FTBFS pkgname=erlang-nox -pkgver=23.2.5 -_docver=23.2 +pkgver=23.3.1 +_docver=23.3 pkgrel=1 pkgdesc='General-purpose concurrent functional programming language (headless version)' arch=(x86_64) @@ -29,7 +29,7 @@ source=("git+https://github.com/erlang/otp.git#tag=OTP-$pkgver" epmd.service epmd.socket) sha256sums=('SKIP' - '5650e5f24d321d38622a981da103a2006cbf17eabbf2d8de645b00870ccf0067' + 'b890e99d3fe1b317ed083455985225550ebf74b4a8ec2af4c758e4ce6e2934ff' '78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2' 'b121ec9053fb37abca5f910a81c526f93ec30fe13b574a12209223b346886a9e' '998a759e4cea4527f9d9b241bf9f32527d7378d63ea40afa38443c6c3ceaea34') @@ -42,9 +42,9 @@ prepare() { build() { cd otp ./configure \ - --prefix=/usr \ --enable-builtin-zlib \ --enable-smp-support \ + --prefix=/usr \ --with-odbc \ --disable-pgo make @@ -53,28 +53,22 @@ build() { package() { make -C otp DESTDIR="$pkgdir" install - # Documentation - install -d "$pkgdir/usr/share/doc/erlang" - install -m0644 "$srcdir/otp/README.md" \ - "$srcdir"/COPYRIGHT \ - "$pkgdir/usr/share/doc/erlang" - - # Compressed man pages - for page in "$srcdir/man/man?/*"; do gzip $page; done - cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang/" - - # License - install -Dm0644 "$srcdir/otp/LICENSE.txt" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" - - # Remove files that are packaged as erlang-unixodbc - rm -rf "$pkgdir/usr/lib/erlang/"{lib/odbc*,man/man3/odbc.3.gz} - - # epmd service, socket and conf - cd "$srcdir" + # 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 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} } # getver: raw.githubusercontent.com/erlang/otp/maint/OTP_VERSION