wok-next diff st/receipt @ rev 20239

linux-cloop: tiny patch (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 06 18:03:36 2017 +0100 (2017-11-06)
parents 9e01bc6321ea
children c4e53a39395a
line diff
     1.1 --- a/st/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/st/receipt	Mon Nov 06 18:03:36 2017 +0100
     1.3 @@ -1,35 +1,34 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="st"
     1.7 -VERSION="0.5"
     1.8 +VERSION="0.7"
     1.9  CATEGORY="x-window"
    1.10 -SHORT_DESC="St is a simple terminal implementation for X."
    1.11 +SHORT_DESC="Simple terminal implementation for X"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="BSD"
    1.14 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15  WEB_SITE="http://st.suckless.org/"
    1.16 -WGET_URL="http://dl.suckless.org/st/$TARBALL"
    1.17  #HOST_ARCH="i486 arm"
    1.18  
    1.19 -DEPENDS="xorg-libX11 xorg-libXft fontconfig freetype ncursesw-extra"
    1.20 -BUILD_DEPENDS="xorg-libX11-dev xorg-libXft-dev fontconfig-dev \
    1.21 -freetype-dev"
    1.22 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.23 +WGET_URL="http://dl.suckless.org/st/$TARBALL"
    1.24 +
    1.25 +DEPENDS="fontconfig freetype xorg-libX11 xorg-libXft"
    1.26 +BUILD_DEPENDS="fontconfig-dev freetype-dev xorg-xproto xorg-libX11-dev \
    1.27 +xorg-libXft-dev"
    1.28  
    1.29  # Rules to configure and make the package.
    1.30  compile_rules()
    1.31  {
    1.32 -	make CC=${HOST_SYSTEM}-gcc
    1.33 +	# fix PREFIX
    1.34 +	sed -i "s|/usr/local|/usr|" config.mk
    1.35 +	# install terminfo files into DESTDIR
    1.36 +	sed -i "s|st.info|& -o$install/usr/share/terminfo|" Makefile
    1.37 +
    1.38 +	make CC=$HOST_SYSTEM-gcc && make install
    1.39  }
    1.40  
    1.41  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.42  genpkg_rules()
    1.43  {
    1.44 -	mkdir -p $fs/usr/bin $fs/usr/share/${PACKAGE}
    1.45 -	cp -a ${src}/${PACKAGE} $fs/usr/bin
    1.46 -	cp ${src}/st.info $fs/usr/share/${PACKAGE}
    1.47 +	copy @std
    1.48  }
    1.49 -
    1.50 -post_install()
    1.51 -{
    1.52 -	chroot "$1/" tic -s /usr/share/${PACKAGE}/st.info
    1.53 -}