wok-next annotate readline/receipt @ rev 19972
Up copyq (3.1.1), qedit (2.8.1)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Tue Oct 17 19:29:54 2017 +0200 (2017-10-17) |
parents | 1a86cb99cbbf |
children | 90a5eb560fd6 |
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" |
pankso@633 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pankso@633 | 9 WEB_SITE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" |
pankso@12810 | 10 HOST_ARCH="i486 arm" |
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@19741 | 16 SPLIT="readline-dev" |
slaxemulator@10336 | 17 |
pankso@633 | 18 # Rules to configure and make the package. |
pankso@633 | 19 compile_rules() |
pankso@633 | 20 { |
pascal@19134 | 21 case "$ARCH" in |
pascal@19134 | 22 arm*) export bash_cv_wcwidth_broken=true ;; |
pascal@19134 | 23 esac |
al@19561 | 24 |
al@19574 | 25 sed -i '/MV.*old/d' Makefile.in |
al@19574 | 26 sed -i '/{OLDSUFF}/c:' support/shlib-install |
al@19561 | 27 |
al@19561 | 28 ./configure \ |
al@19574 | 29 --disable-static \ |
al@19741 | 30 --libdir=/lib \ |
al@19574 | 31 --docdir=/usr/share/doc/readline-$VERSION \ |
al@19561 | 32 $CONFIGURE_ARGS && |
al@19574 | 33 make SHLIB_LIBS=-lncurses && |
al@19561 | 34 make DESTDIR=$install install |
al@19741 | 35 |
al@19741 | 36 # *.so.* -> /lib |
al@19741 | 37 # *.so -> /usr/lib |
al@19741 | 38 mkdir -p $install/usr/lib |
al@19741 | 39 ln -sfv ../../lib/$(readlink $install/lib/libreadline.so) \ |
al@19741 | 40 $install/usr/lib/libreadline.so |
al@19741 | 41 ln -sfv ../../lib/$(readlink $install/lib/libhistory.so ) \ |
al@19741 | 42 $install/usr/lib/libhistory.so |
al@19741 | 43 rm $install/lib/*.so |
al@19741 | 44 |
al@19741 | 45 # install the documentation |
al@19741 | 46 cp doc/*.pdf doc/*.html $install/usr/share/doc/readline-7.0 |
pankso@633 | 47 } |
pankso@633 | 48 |
pankso@633 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@633 | 50 genpkg_rules() |
pankso@633 | 51 { |
al@19741 | 52 case $PACKAGE in |
al@19741 | 53 readline) copy @std; DEPENDS="ncurses";; |
al@19741 | 54 *-dev) copy @dev;; |
al@19741 | 55 esac |
pankso@633 | 56 } |