wok annotate notecase/receipt @ rev 23056

xplanet: add giflib5 patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 07 16:37:51 2020 +0100 (2020-03-07)
parents bd69f702d485
children afae00265386
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"
al@17263 6 SHORT_DESC="A hierarchical text notes manager"
pankso@1037 7 MAINTAINER="cooltaz@fastmail.fm"
pascal@15356 8 LICENSE="BSD"
pankso@1037 9 TARBALL="$PACKAGE-${VERSION}_src.tar.gz"
pankso@1037 10 WEB_SITE="http://notecase.sourceforge.net/"
pankso@1037 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4969 12 TAGS="office notes"
pankso@1037 13
al@17263 14 DEPENDS="gnome-vfs gtksourceview"
pascal@17674 15 BUILD_DEPENDS="gtk+-dev pixman-dev gtksourceview-dev gnome-vfs-dev GConf-dev \
pascal@17674 16 pkg-config"
pascal@15356 17
pankso@1037 18 # Rules to configure and make the package.
pankso@1037 19 compile_rules()
pankso@4326 20 {
pascal@17670 21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
erjo@9867 22 busybox patch -p1 -i $stuff/notecase-1.9.8_gcc4.u || return 1
erjo@9867 23
pascal@20212 24 sed -i 's|uname -m|echo i486|' Makefile
pankso@1037 25 sed -i s/'install -D'/'install'/ Makefile
pascal@14325 26 sed -i 's/^DEBSIZE:=.*/DEBSIZE:=0/' Makefile*
pankso@1037 27 # Compile
pascal@15355 28 make CFLAGS="$(pkg-config gnome-vfs-2.0 --cflags)"
pankso@1037 29 # Locale trick (Makefile use install -D)
pankso@1037 30 cd po
pankso@1037 31 for i in `ls *.po | cut -f1 -d.`
pankso@1037 32 do
pascal@14326 33 mkdir -p $install/usr/share/locale/$i/LC_MESSAGES
pankso@1037 34 done
pankso@1037 35 cd ..
pankso@1037 36 # Install
pascal@14325 37 make DESTDIR=$DESTDIR install
pankso@1037 38 }
pankso@1037 39
pankso@1037 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1037 41 genpkg_rules()
pankso@1037 42 {
pascal@11623 43 mkdir -p $fs/usr/share/applications
al@17261 44
al@17261 45 cp -a $install/usr/bin $fs/usr
pascal@11623 46 cp -a $stuff/notecase.desktop $fs/usr/share/applications
pankso@1037 47 }
pankso@1037 48