wok-next annotate stfl/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents c3a368c0cddb
children
rev   line source
al@19817 1 # SliTaz package receipt v2.
pascal@18444 2
pascal@18444 3 PACKAGE="stfl"
pascal@18444 4 VERSION="0.24"
pascal@18444 5 CATEGORY="base-system"
al@19817 6 SHORT_DESC="Structured Terminal Forms Language/Library"
pascal@18444 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18444 8 LICENSE="LGPL3"
al@19817 9 WEB_SITE="http://www.clifford.at/stfl/"
al@19817 10
pascal@18444 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18444 12 WGET_URL="$WEB_SITE$TARBALL"
pascal@18444 13
al@19817 14 BUILD_DEPENDS="ncurses-dev swig python-dev"
al@21020 15 SPLIT="python-stfl $PACKAGE-dev"
pascal@18444 16
al@20456 17 compile_rules() {
pascal@18444 18 sed -i 's|/usr/local|/usr|' Makefile.cfg
pascal@18444 19 sed -i 's|ncursesw/ncurses.h|ncurses.h|' stfl_internals.h
pascal@18444 20 sed -i 's|^include Makefile.deps|-&|' Makefile
al@19817 21
al@19817 22 make -j1 &&
al@21020 23 make -j1 DESTDIR=$install install
al@19817 24
al@19817 25 ln -s libstfl.so.$VERSION $install/usr/lib/libstfl.so.0
pascal@18444 26 }
pascal@18444 27
al@20456 28 genpkg_rules() {
al@19817 29 case $PACKAGE in
al@19817 30 stfl)
al@19817 31 copy libstfl.so*
al@19817 32 DEPENDS="ncurses"
al@19817 33 ;;
al@20456 34 python-stfl)
al@19817 35 copy python*/
al@20456 36 CAT="development|Python bindings"
al@20456 37 DEPENDS="ncurses python stfl"
al@19817 38 ;;
al@19817 39 *-dev)
al@19817 40 copy @dev
al@19817 41 DEPENDS="stfl stfl-python ncurses-dev"
al@19817 42 ;;
al@19817 43 esac
pascal@18444 44 }