wok annotate notecase/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (2022-06-13)
parents 3705d68ed8f3
children 7dd01dedad38
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
pascal@24402 18 # What is the latest version available today?
pascal@24402 19 current_version()
pascal@24402 20 {
pascal@24402 21 wget -O - https://sourceforge.net/projects/notecase/files/notecase/ 2>/dev/null | \
pascal@24402 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 23 sed '/scope="row/!d;s|.*/notecase/||;s|/.*||;q'
pascal@24402 24 }
pascal@24402 25
pankso@1037 26 # Rules to configure and make the package.
pankso@1037 27 compile_rules()
pankso@4326 28 {
pascal@17670 29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
erjo@9867 30 busybox patch -p1 -i $stuff/notecase-1.9.8_gcc4.u || return 1
erjo@9867 31
pascal@20212 32 sed -i 's|uname -m|echo i486|' Makefile
pankso@1037 33 sed -i s/'install -D'/'install'/ Makefile
pascal@14325 34 sed -i 's/^DEBSIZE:=.*/DEBSIZE:=0/' Makefile*
pankso@1037 35 # Compile
pascal@15355 36 make CFLAGS="$(pkg-config gnome-vfs-2.0 --cflags)"
pankso@1037 37 # Locale trick (Makefile use install -D)
pankso@1037 38 cd po
pankso@1037 39 for i in `ls *.po | cut -f1 -d.`
pankso@1037 40 do
pascal@14326 41 mkdir -p $install/usr/share/locale/$i/LC_MESSAGES
pankso@1037 42 done
pankso@1037 43 cd ..
pankso@1037 44 # Install
pascal@14325 45 make DESTDIR=$DESTDIR install
pankso@1037 46 }
pankso@1037 47
pankso@1037 48 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1037 49 genpkg_rules()
pankso@1037 50 {
pascal@11623 51 mkdir -p $fs/usr/share/applications
al@17261 52
al@17261 53 cp -a $install/usr/bin $fs/usr
pascal@11623 54 cp -a $stuff/notecase.desktop $fs/usr/share/applications
pankso@1037 55 }
pankso@1037 56