wok-current view notecase/receipt @ rev 17490

Add xrestop
author Paul Issott <paul@slitaz.org>
date Fri Jan 02 18:34:02 2015 +0000 (2015-01-02)
parents 533c0cab6960
children 17e313b5b9c1
line source
1 # SliTaz package receipt
3 PACKAGE="notecase"
4 VERSION="1.9.8"
5 CATEGORY="office"
6 SHORT_DESC="A hierarchical text notes manager"
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="gnome-vfs gtksourceview"
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 {
20 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11"
21 busybox patch -p1 -i $stuff/notecase-1.9.8_gcc4.u || return 1
23 # Disable gnome-vfs support
24 sed -i /'AUTODETECT_GNOME_VFS=1'/d Makefile
25 sed -i /'HAVE_GNOME_VFS=1'/d Makefile
26 sed -i /'AUTODETECT_GTKSOURCEVIEW=1'/d Makefile
27 sed -i s/'install -D'/'install'/ Makefile
28 sed -i 's/^DEBSIZE:=.*/DEBSIZE:=0/' Makefile*
29 # Compile
30 make CFLAGS="$(pkg-config gnome-vfs-2.0 --cflags)"
31 # Locale trick (Makefile use install -D)
32 cd po
33 for i in `ls *.po | cut -f1 -d.`
34 do
35 mkdir -p $install/usr/share/locale/$i/LC_MESSAGES
36 done
37 cd ..
38 # Install
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/applications
47 cp -a $install/usr/bin $fs/usr
48 cp -a $stuff/notecase.desktop $fs/usr/share/applications
49 }