wok-6.x annotate notecase/receipt @ rev 17674

tix: tcl 8.6 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 18 11:02:05 2015 +0100 (2015-02-18)
parents 17e313b5b9c1
children 2ab1d75df9f2
rev   line source
pankso@1037 1 # SliTaz package receipt
pankso@1037 2
pankso@1037 3 PACKAGE="notecase"
erjo@4241 4 VERSION="1.9.8"
pankso@1037 5 CATEGORY="office"
al@17263 6 SHORT_DESC="A hierarchical text notes manager"
pankso@1037 7 MAINTAINER="cooltaz@fastmail.fm"
pascal@15356 8 LICENSE="BSD"
pankso@1037 9 TARBALL="$PACKAGE-${VERSION}_src.tar.gz"
pankso@1037 10 WEB_SITE="http://notecase.sourceforge.net/"
pankso@1037 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4969 12 TAGS="office notes"
pankso@1037 13
al@17263 14 DEPENDS="gnome-vfs gtksourceview"
pascal@17674 15 BUILD_DEPENDS="gtk+-dev pixman-dev gtksourceview-dev gnome-vfs-dev GConf-dev \
pascal@17674 16 pkg-config"
pascal@15356 17
pankso@1037 18 # Rules to configure and make the package.
pankso@1037 19 compile_rules()
pankso@4326 20 {
pascal@17670 21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
erjo@9867 22 busybox patch -p1 -i $stuff/notecase-1.9.8_gcc4.u || return 1
erjo@9867 23
pankso@1037 24 # Disable gnome-vfs support
pankso@1037 25 sed -i /'AUTODETECT_GNOME_VFS=1'/d Makefile
pankso@1037 26 sed -i /'HAVE_GNOME_VFS=1'/d Makefile
pankso@4326 27 sed -i /'AUTODETECT_GTKSOURCEVIEW=1'/d Makefile
pankso@1037 28 sed -i s/'install -D'/'install'/ Makefile
pascal@14325 29 sed -i 's/^DEBSIZE:=.*/DEBSIZE:=0/' Makefile*
pankso@1037 30 # Compile
pascal@15355 31 make CFLAGS="$(pkg-config gnome-vfs-2.0 --cflags)"
pankso@1037 32 # Locale trick (Makefile use install -D)
pankso@1037 33 cd po
pankso@1037 34 for i in `ls *.po | cut -f1 -d.`
pankso@1037 35 do
pascal@14326 36 mkdir -p $install/usr/share/locale/$i/LC_MESSAGES
pankso@1037 37 done
pankso@1037 38 cd ..
pankso@1037 39 # Install
pascal@14325 40 make DESTDIR=$DESTDIR install
pankso@1037 41 }
pankso@1037 42
pankso@1037 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1037 44 genpkg_rules()
pankso@1037 45 {
pascal@11623 46 mkdir -p $fs/usr/share/applications
al@17261 47
al@17261 48 cp -a $install/usr/bin $fs/usr
pascal@11623 49 cp -a $stuff/notecase.desktop $fs/usr/share/applications
pankso@1037 50 }
pankso@1037 51