wok annotate slang/receipt @ rev 24891

lynx: use ncursesw (tanks ceel)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 07 07:20:18 2022 +0000 (2022-04-07)
parents 5c74e7d74dfc
children
rev   line source
erjo@506 1 # SliTaz package receipt.
erjo@506 2
erjo@506 3 PACKAGE="slang"
Hans-G?nter@21913 4 VERSION="2.3.2"
erjo@506 5 CATEGORY="development"
Hans-G?nter@21913 6 SHORT_DESC="S-Lang library."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
Hans-G?nter@21913 9 WEB_SITE="http://jedsoft.org/slang/"
erjo@506 10
Hans-G?nter@21913 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@21913 12 WGET_URL="http://jedsoft.org/releases/$PACKAGE/$TARBALL"
Hans-G?nter@21913 13
Hans-G?nter@21913 14 DEPENDS="libpng pcre zlib"
erjo@9950 15
pascal@24462 16 # What is the latest version available today?
pascal@24462 17 current_version()
pascal@24462 18 {
pascal@24462 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24462 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24462 21 }
pascal@24462 22
erjo@506 23 # Rules to configure and make the package.
erjo@506 24 compile_rules()
erjo@506 25 {
slaxemulator@11035 26 ./configure --prefix=/usr $CONFIGURE_ARGS &&
Hans-G?nter@21913 27 make -j1 &&
Hans-G?nter@21913 28 make -j1 elf &&
slaxemulator@8541 29 make -j1 static &&
erjo@9950 30 make -j1 DESTDIR=$DESTDIR install install-static
erjo@506 31 }
erjo@506 32
erjo@506 33 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@506 34 genpkg_rules()
erjo@506 35 {
erjo@9950 36 mkdir -p $fs/usr/lib
Hans-G?nter@21913 37
Hans-G?nter@21913 38 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21913 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21913 40 cp -a $install/usr/lib/slang $fs/usr/lib
erjo@506 41 }