wok-current annotate cssed/receipt @ rev 24789

grep: add post_install (install)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 21 09:36:52 2022 +0000 (2022-03-21)
parents 380ffe05937a
children b0069c845544
rev   line source
pascal@11219 1 # SliTaz package receipt.
pascal@11219 2
pascal@11219 3 PACKAGE="cssed"
pascal@11219 4 VERSION="0.4.0"
pascal@11219 5 CATEGORY="development"
al@13922 6 SHORT_DESC="CSS editor for web developers"
pascal@11219 7 MAINTAINER="claudinei@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@11219 9 WEB_SITE="http://cssed.sourceforge.net"
pascal@11219 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11219 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@11219 12
pascal@11219 13 DEPENDS="gtk+"
pascal@13830 14 BUILD_DEPENDS="gtk+-dev libxml2-dev"
pascal@11219 15
pascal@24373 16 # What is the latest version available today?
pascal@24373 17 current_version()
pascal@24373 18 {
pascal@24373 19 wget -O - https://sourceforge.net/projects/cssed/files/cssed/ 2>/dev/null | \
pascal@24373 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24373 21 sed '/scope="row/!d;s|.*/cssed/||;s|/.*||;q'
pascal@24373 22 }
pascal@24373 23
pascal@11219 24 # Rules to configure and make the package.
pascal@11219 25 compile_rules()
pascal@11219 26 {
al@13925 27 sed -i "s/char\* o = 0;/const char\* o = 0;/" $src/scintilla/src/LexCaml.cxx
al@13925 28 ./configure $CONFIGURE_ARGS &&
al@13925 29 sed -i 's/^cssed_LDADD.*/\0 -lgmodule-2.0/' $src/src/Makefile &&
al@13925 30 make &&
pascal@11219 31 make install
pascal@11219 32 }
pascal@11219 33
pascal@11219 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11219 35 genpkg_rules()
pascal@11219 36 {
pascal@11219 37 mkdir -p $fs/usr/share
pascal@11219 38 cp -a $install/usr/share/$PACKAGE $fs/usr/share
pascal@11219 39 cp -a $install/usr/bin $fs/usr
pascal@11219 40 }