wok-next annotate notecase/receipt @ rev 16416

Up rdesktop (1.8.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 17 13:15:06 2014 +0000 (2014-04-17)
parents 51731905055e
children 533c0cab6960
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"
pankso@1037 6 SHORT_DESC="Hierarchical note manager (aka. outliner)."
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
pascal@15356 14 DEPENDS="gtk+ xorg-libXdamage gcc-lib-base"
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 {
erjo@9867 20
pankso@1037 21 cd $src
pascal@14321 22 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11"
erjo@9867 23 busybox patch -p1 -i $stuff/notecase-1.9.8_gcc4.u || return 1
erjo@9867 24
pankso@1037 25 # Disable gnome-vfs support
pankso@1037 26 sed -i /'AUTODETECT_GNOME_VFS=1'/d Makefile
pankso@1037 27 sed -i /'HAVE_GNOME_VFS=1'/d Makefile
pankso@4326 28 sed -i /'AUTODETECT_GTKSOURCEVIEW=1'/d Makefile
pankso@1037 29 sed -i s/'install -D'/'install'/ Makefile
pascal@14325 30 sed -i 's/^DEBSIZE:=.*/DEBSIZE:=0/' Makefile*
pankso@1037 31 # Compile
pascal@15355 32 make CFLAGS="$(pkg-config gnome-vfs-2.0 --cflags)"
pankso@1037 33 # Locale trick (Makefile use install -D)
pankso@1037 34 cd po
pankso@1037 35 for i in `ls *.po | cut -f1 -d.`
pankso@1037 36 do
pascal@14326 37 mkdir -p $install/usr/share/locale/$i/LC_MESSAGES
pankso@1037 38 done
pankso@1037 39 cd ..
pankso@1037 40 # Install
pascal@14325 41 make DESTDIR=$DESTDIR install
pankso@1037 42 }
pankso@1037 43
pankso@1037 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1037 45 genpkg_rules()
pankso@1037 46 {
pascal@11623 47 mkdir -p $fs/usr/share/applications
pascal@11623 48 cp -a $stuff/notecase.desktop $fs/usr/share/applications
pascal@14325 49 cp -a $install/usr/bin $fs/usr
pascal@14325 50 cp -a $install/usr/share/mime $fs/usr/share
pankso@1037 51 }
pankso@1037 52