wok annotate beaver/receipt @ rev 24890

trafshow: libpcap 1.10 has its own pcap_init
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 05 09:06:43 2022 +0000 (2022-04-05)
parents 68cf96abc146
children 7dd01dedad38
rev   line source
pankso@1008 1 # SliTaz package receipt.
pankso@1008 2
pankso@1008 3 PACKAGE="beaver"
slaxemulator@6297 4 VERSION="0.4.1"
al@19275 5 CATEGORY="text"
al@19275 6 SHORT_DESC="Simple and very light advanced text editor"
pankso@1008 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
al@19275 9 WEB_SITE="http://beaver-editor.sourceforge.net/"
erjo@5928 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@5928 11 WGET_URL="$SF_MIRROR/$PACKAGE-editor/$TARBALL"
jozee@3567 12 TAGS="text-editor"
pankso@16281 13 HOST_ARCH="i486 arm"
al@19275 14 GENERIC_PIXMAPS="no"
pankso@16281 15
pascal@15002 16 DEPENDS="gtk+ xorg-libXdamage"
pankso@16281 17 BUILD_DEPENDS="gtk+-dev xorg-xproto expat-dev"
al@19275 18 SPLIT="beaver-plugins"
pascal@15002 19
pascal@24066 20 current_version()
pascal@24066 21 {
pascal@24071 22 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24071 23 sed '/Stable/!d;s|.*Beaver ||;s| Stable.*||;q'
pascal@24066 24 }
pascal@24066 25
pankso@1008 26 # Rules to configure and make the package.
pankso@1008 27 compile_rules()
pankso@1008 28 {
pascal@13826 29 sed -i 's|dir/po/\*\.po|& 2>/dev/null|' configure
al@19275 30 patch -p1 -i $stuff/icon.patch
al@19275 31
al@19275 32 ./configure $CONFIGURE_ARGS && make && make install
pankso@1008 33 }
pankso@1008 34
pankso@1008 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1008 36 genpkg_rules()
pankso@1008 37 {
pascal@23908 38 mkdir -p $fs/usr/share/icons/hicolor/32x32/
pascal@23908 39 cp -a $install/usr/share/icons/hicolor/32x32/apps \
pascal@23908 40 $fs/usr/share/icons/hicolor/32x32/
al@19275 41 cook_copy_files beaver
al@19275 42 cook_copy_icons
al@19275 43 mkdir -p $fs/usr/share/beaver
pascal@15002 44 cp -a $install/usr/share/beaver/resource $fs/usr/share/beaver
al@19275 45
pankso@4831 46 # Custom default configuration
pankso@9697 47 cp -a $stuff/beaver.conf.default $fs/usr/share/beaver/resource
pankso@1008 48 }