wok-next diff 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 diff
1.1 --- a/erlang/receipt Tue Oct 17 10:14:12 2017 +0200 1.2 +++ b/erlang/receipt Fri Apr 27 15:12:17 2018 +0300 1.3 @@ -1,36 +1,32 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="erlang" 1.8 VERSION="R15B01" 1.9 CATEGORY="development" 1.10 -SHORT_DESC="Erlang programming language." 1.11 +SHORT_DESC="Erlang programming language" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="other" 1.14 +WEB_SITE="http://$PACKAGE.org/" 1.15 + 1.16 SOURCE="otp_src" 1.17 TARBALL="${SOURCE}_$VERSION.tar.gz" 1.18 -WEB_SITE="http://$PACKAGE.org/" 1.19 WGET_URL="${WEB_SITE}download/$TARBALL" 1.20 1.21 -DEPENDS="ncurses openssl libunixODBC" 1.22 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 +compile_rules() { 1.28 export LANG=C 1.29 sed -i 's|./Install|sh -x Install|' Makefile* 1.30 - 1.31 - ./configure \ 1.32 - --prefix=/usr \ 1.33 - --sysconfdir=/etc \ 1.34 - --mandir=/usr/share/man \ 1.35 - --infodir=/usr/share/info \ 1.36 - $CONFIGURE_ARGS && 1.37 + 1.38 + ./configure $CONFIGURE_ARGS && 1.39 make -j 1 && 1.40 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1 1.41 - 1.42 - for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \ 1.43 - $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start 1.44 + 1.45 + for i in \ 1.46 + $DESTDIR/usr/lib/erlang/*/bin/erl \ 1.47 + $DESTDIR/usr/lib/erlang/bin/erl \ 1.48 + $DESTDIR/usr/lib/erlang/*/bin/start \ 1.49 + $DESTDIR/usr/lib/erlang/bin/start 1.50 do 1.51 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i 1.52 done 1.53 @@ -39,8 +35,7 @@ 1.54 done 1.55 } 1.56 1.57 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.58 -genpkg_rules() 1.59 -{ 1.60 - cp -a $install/usr $fs 1.61 +genpkg_rules() { 1.62 + copy @std 1.63 + DEPENDS="ncurses openssl libunixODBC" 1.64 }