wok-current view beaver/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents cec9f8f5726d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="beaver"
4 VERSION="0.4.1"
5 CATEGORY="text"
6 SHORT_DESC="Simple and very light advanced text editor"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://beaver-editor.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$SF_MIRROR/$PACKAGE-editor/$TARBALL"
12 TAGS="text-editor"
13 HOST_ARCH="i486 arm"
14 GENERIC_PIXMAPS="no"
16 DEPENDS="gtk+ xorg-libXdamage"
17 BUILD_DEPENDS="gtk+-dev xorg-xproto expat-dev"
18 SPLIT="beaver-plugins"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | \
24 sed '/Stable/!d;s|.*Beaver ||;s| Stable.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's|dir/po/\*\.po|& 2>/dev/null|' configure
31 patch -p1 -i $stuff/icon.patch
33 # Fix build with new stack
34 # see https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=beaver
35 CFLAGS="$CFLAGS -fgnu89-inline -fcommon"
37 ./configure $CONFIGURE_ARGS && make && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/icons/hicolor/32x32/
44 cp -a $install/usr/share/icons/hicolor/32x32/apps \
45 $fs/usr/share/icons/hicolor/32x32/
46 cook_copy_files beaver
47 cook_copy_icons
48 mkdir -p $fs/usr/share/beaver
49 cp -a $install/usr/share/beaver/resource $fs/usr/share/beaver
51 # Custom default configuration
52 cp -a $stuff/beaver.conf.default $fs/usr/share/beaver/resource
53 }