wok-current view notecase/receipt @ rev 24996
updated nim (0.19.6 -> 1.6.6)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 10:46:30 2022 +0100 (2022-05-16) |
parents | 3705d68ed8f3 |
children | 7dd01dedad38 |
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 # 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 }