wok-next view erlang/receipt @ rev 20459
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 13:45:43 2018 +0200 (2018-03-02) |
parents | c7c3567bd8d4 |
children | 757d032c55c7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="R15B01"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 SOURCE="otp_src"
10 TARBALL="${SOURCE}_$VERSION.tar.gz"
11 WEB_SITE="http://$PACKAGE.org/"
12 WGET_URL="${WEB_SITE}download/$TARBALL"
14 DEPENDS="ncurses openssl libunixODBC"
15 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export LANG=C
21 sed -i 's|./Install|sh -x Install|' Makefile*
23 ./configure \
24 --prefix=/usr \
25 --sysconfdir=/etc \
26 --mandir=/usr/share/man \
27 --infodir=/usr/share/info \
28 $CONFIGURE_ARGS &&
29 make -j 1 &&
30 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
32 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
33 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
34 do
35 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
36 done
37 for file in $(ls $DESTDIR/usr/bin); do
38 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
39 done
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $install/usr $fs
46 }