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

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