wok-next view 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
line source
1 # SliTaz package receipt
3 PACKAGE="notecase"
4 VERSION="1.9.8"
5 CATEGORY="office"
6 SHORT_DESC="Hierarchical note manager (aka. outliner)."
7 MAINTAINER="cooltaz@fastmail.fm"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-${VERSION}_src.tar.gz"
10 WEB_SITE="http://notecase.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="office notes"
14 DEPENDS="gtk+ xorg-libXdamage gcc-lib-base"
15 BUILD_DEPENDS="gtk+-dev pixman-dev gtksourceview-dev gnome-vfs-dev GConf-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
21 cd $src
22 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11"
23 busybox patch -p1 -i $stuff/notecase-1.9.8_gcc4.u || return 1
25 # Disable gnome-vfs support
26 sed -i /'AUTODETECT_GNOME_VFS=1'/d Makefile
27 sed -i /'HAVE_GNOME_VFS=1'/d Makefile
28 sed -i /'AUTODETECT_GTKSOURCEVIEW=1'/d Makefile
29 sed -i s/'install -D'/'install'/ Makefile
30 sed -i 's/^DEBSIZE:=.*/DEBSIZE:=0/' Makefile*
31 # Compile
32 make CFLAGS="$(pkg-config gnome-vfs-2.0 --cflags)"
33 # Locale trick (Makefile use install -D)
34 cd po
35 for i in `ls *.po | cut -f1 -d.`
36 do
37 mkdir -p $install/usr/share/locale/$i/LC_MESSAGES
38 done
39 cd ..
40 # Install
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share/applications
48 cp -a $stuff/notecase.desktop $fs/usr/share/applications
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/share/mime $fs/usr/share
51 }