wok view erlang/receipt @ rev 25386

updated unrar (5.9.2 -> 6.1.7)
author Hans-G?nter Theisgen
date Sat Jul 30 17:51:49 2022 +0100 (2022-07-30)
parents 08ef47c67999
children 20ad21d5532c
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="24.2.1"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Erlang Public Licence"
9 WEB_SITE="https://www.erlang.org/"
11 SOURCE="OTP"
12 TARBALL="${SOURCE}-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$PACKAGE/otp/archive/$TARBALL"
15 DEPENDS="libunixODBC ncurses openssl"
16 BUILD_DEPENDS="autoconf gcc+gcj icedtea6-jdk libxslt ncurses-dev
17 openssl-dev perl unixODBC-dev wxWidgets-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/erlang/otp/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/[A-Za-z-]*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export LDFLAGS="$LDFLAGS -ltinfo"
30 export LANG=C
32 sed '/ lib\/jinterface/s,for,[ ! -d lib/jinterface/priv ] || &,' -i Makefile*
34 ./otp_build autoconf &&
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --mandir=/usr/share/man \
39 --infodir=/usr/share/info \
40 $CONFIGURE_ARGS &&
41 make &&
42 make INSTALL_PREFIX=$DESTDIR install || return 1
44 for i in $DESTDIR/usr/lib/erlang/*/bin/erl \
45 $DESTDIR/usr/lib/erlang/bin/erl \
46 $DESTDIR/usr/lib/erlang/*/bin/start \
47 $DESTDIR/usr/lib/erlang/bin/start
48 do
49 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
50 done
52 for file in $(ls $DESTDIR/usr/bin)
53 do
54 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
55 done
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 cp -a $install/usr $fs
62 }