wok-next view erlang/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 466bca9334ef |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://$PACKAGE.org/"
11 SOURCE="otp_src"
12 TARBALL="${SOURCE}_$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}download/$TARBALL"
15 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk"
17 compile_rules() {
18 export LANG=C
19 sed -i 's|./Install|sh -x Install|' Makefile*
21 ./configure $CONFIGURE_ARGS &&
22 make -j 1 &&
23 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
25 for i in \
26 $DESTDIR/usr/lib/erlang/*/bin/erl \
27 $DESTDIR/usr/lib/erlang/bin/erl \
28 $DESTDIR/usr/lib/erlang/*/bin/start \
29 $DESTDIR/usr/lib/erlang/bin/start
30 do
31 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
32 done
33 for file in $(ls $DESTDIR/usr/bin); do
34 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
35 done
36 }
38 genpkg_rules() {
39 copy @std
40 DEPENDS="ncurses openssl libunixODBC"
41 }