wok-6.x view notecase/receipt @ rev 18620

Up slitaz-base-files(287)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 21 17:54:19 2015 +0200 (2015-11-21)
parents 2ab1d75df9f2
children 3705d68ed8f3
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 sed -i s/'install -D'/'install'/ Makefile
25 sed -i 's/^DEBSIZE:=.*/DEBSIZE:=0/' Makefile*
26 # Compile
27 make CFLAGS="$(pkg-config gnome-vfs-2.0 --cflags)"
28 # Locale trick (Makefile use install -D)
29 cd po
30 for i in `ls *.po | cut -f1 -d.`
31 do
32 mkdir -p $install/usr/share/locale/$i/LC_MESSAGES
33 done
34 cd ..
35 # Install
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/applications
44 cp -a $install/usr/bin $fs/usr
45 cp -a $stuff/notecase.desktop $fs/usr/share/applications
46 }