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

Add libnetfilter_cttimeout
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 27 12:18:59 2014 +0100 (2014-10-27)
parents 533c0cab6960
children 17e313b5b9c1
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@15356 15 BUILD_DEPENDS="gtk+-dev pixman-dev gtksourceview-dev gnome-vfs-dev GConf-dev"
pascal@15356 16
pankso@1037 17 # Rules to configure and make the package.
pankso@1037 18 compile_rules()
pankso@4326 19 {
pascal@14321 20 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11"
erjo@9867 21 busybox patch -p1 -i $stuff/notecase-1.9.8_gcc4.u || return 1
erjo@9867 22
pankso@1037 23 # Disable gnome-vfs support
pankso@1037 24 sed -i /'AUTODETECT_GNOME_VFS=1'/d Makefile
pankso@1037 25 sed -i /'HAVE_GNOME_VFS=1'/d Makefile
pankso@4326 26 sed -i /'AUTODETECT_GTKSOURCEVIEW=1'/d Makefile
pankso@1037 27 sed -i s/'install -D'/'install'/ Makefile
pascal@14325 28 sed -i 's/^DEBSIZE:=.*/DEBSIZE:=0/' Makefile*
pankso@1037 29 # Compile
pascal@15355 30 make CFLAGS="$(pkg-config gnome-vfs-2.0 --cflags)"
pankso@1037 31 # Locale trick (Makefile use install -D)
pankso@1037 32 cd po
pankso@1037 33 for i in `ls *.po | cut -f1 -d.`
pankso@1037 34 do
pascal@14326 35 mkdir -p $install/usr/share/locale/$i/LC_MESSAGES
pankso@1037 36 done
pankso@1037 37 cd ..
pankso@1037 38 # Install
pascal@14325 39 make DESTDIR=$DESTDIR install
pankso@1037 40 }
pankso@1037 41
pankso@1037 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1037 43 genpkg_rules()
pankso@1037 44 {
pascal@11623 45 mkdir -p $fs/usr/share/applications
al@17261 46
al@17261 47 cp -a $install/usr/bin $fs/usr
pascal@11623 48 cp -a $stuff/notecase.desktop $fs/usr/share/applications
pankso@1037 49 }
pankso@1037 50