wok-6.x view notecase/receipt @ rev 17674
tix: tcl 8.6 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 18 11:02:05 2015 +0100 (2015-02-18) |
parents | 17e313b5b9c1 |
children | 2ab1d75df9f2 |
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 \
16 pkg-config"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
22 busybox patch -p1 -i $stuff/notecase-1.9.8_gcc4.u || return 1
24 # Disable gnome-vfs support
25 sed -i /'AUTODETECT_GNOME_VFS=1'/d Makefile
26 sed -i /'HAVE_GNOME_VFS=1'/d Makefile
27 sed -i /'AUTODETECT_GTKSOURCEVIEW=1'/d Makefile
28 sed -i s/'install -D'/'install'/ Makefile
29 sed -i 's/^DEBSIZE:=.*/DEBSIZE:=0/' Makefile*
30 # Compile
31 make CFLAGS="$(pkg-config gnome-vfs-2.0 --cflags)"
32 # Locale trick (Makefile use install -D)
33 cd po
34 for i in `ls *.po | cut -f1 -d.`
35 do
36 mkdir -p $install/usr/share/locale/$i/LC_MESSAGES
37 done
38 cd ..
39 # Install
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/applications
48 cp -a $install/usr/bin $fs/usr
49 cp -a $stuff/notecase.desktop $fs/usr/share/applications
50 }