wok-next annotate readline/receipt @ rev 21037

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 06 16:35:54 2018 +0200 (2018-11-06)
parents 90a5eb560fd6
children d457c4e37c1b
rev   line source
al@19741 1 # SliTaz package receipt v2.
pankso@633 2
pankso@633 3 PACKAGE="readline"
al@19741 4 VERSION="7.0"
pankso@633 5 CATEGORY="system-tools"
al@19741 6 SHORT_DESC="GNU readline"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
al@20436 9 WEB_SITE="https://www.gnu.org/software/readline"
al@20436 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/readline.html"
pankso@633 11
al@19561 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19561 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
al@19561 14
al@19561 15 BUILD_DEPENDS="ncurses-dev flex"
al@21020 16 SPLIT="$PACKAGE-dev"
slaxemulator@10336 17
al@20436 18 compile_rules() {
al@19574 19 sed -i '/MV.*old/d' Makefile.in
al@19574 20 sed -i '/{OLDSUFF}/c:' support/shlib-install
al@19561 21
al@19561 22 ./configure \
al@19574 23 --disable-static \
al@19561 24 $CONFIGURE_ARGS &&
al@20436 25 make SHLIB_LIBS="-lncursesw" &&
al@20436 26 make SHLIB_LIBS="-lncurses" DESTDIR=$install install || return 1
al@19741 27
al@20436 28 mkdir -p $install/lib
al@20436 29 for i in readline history; do
al@20436 30 mv -v $install/usr/lib/lib$i.so.* $install/lib
al@20436 31 ln -sf ../../lib/$(readlink $install/usr/lib/lib$i.so) \
al@20436 32 $install/usr/lib/lib$i.so
al@20436 33 done
al@20436 34
al@20436 35 find $install -type f -name '*.so*' -exec chmod 755 '{}' \;
al@20436 36 rmdir --ignore-fail-on-non-empty $install/usr/bin/
al@19741 37
al@19741 38 # install the documentation
al@20436 39 cook_pick_docs doc/*.pdf doc/*.html
pankso@633 40 }
pankso@633 41
al@20436 42 genpkg_rules() {
al@19741 43 case $PACKAGE in
al@20436 44 readline)
al@20436 45 copy @std
al@20436 46 DEPENDS="ncurses"
al@20436 47 TAGS="LFS"
al@20436 48 ;;
al@19741 49 *-dev) copy @dev;;
al@19741 50 esac
pankso@633 51 }