wok annotate notecase/receipt @ rev 14325

notecase: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 08 09:02:42 2013 +0200 (2013-04-08)
parents 1c40dce382b3
children b541f38cb759
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@5004 8 DEPENDS="gtk+ xorg-libXdamage gcc-lib-base"
pascal@14234 9 BUILD_DEPENDS="gtk+-dev pixman-dev gtksourceview-dev gnome-vfs-dev"
pankso@1037 10 TARBALL="$PACKAGE-${VERSION}_src.tar.gz"
pankso@1037 11 WEB_SITE="http://notecase.sourceforge.net/"
pankso@1037 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4969 13 TAGS="office notes"
pankso@1037 14
pankso@1037 15 # Rules to configure and make the package.
pankso@1037 16 compile_rules()
pankso@4326 17 {
erjo@9867 18
pankso@1037 19 cd $src
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@14325 30 make 2>&1 | grep -v gtksourceview.h
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
pankso@1037 35 mkdir -p $src/_pkg/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
pascal@11623 46 cp -a $stuff/notecase.desktop $fs/usr/share/applications
pascal@14325 47 cp -a $install/usr/bin $fs/usr
pascal@14325 48 cp -a $install/usr/share/mime $fs/usr/share
pankso@1037 49 }
pankso@1037 50