wok-6.x view xpad/receipt @ rev 24788

grep: add post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 21 09:31:32 2022 +0000 (2022-03-21)
parents 2b9f96603415
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xpad"
4 VERSION="4.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Sticky note application for X"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://launchpad.net/xpad"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://launchpad.net/xpad/trunk/$VERSION/+download/$TARBALL"
12 HANDBOOK_URL="http://www.slitaz.org/doc/handbook/utilities.html#xpad"
14 DEPENDS="gtk+ util-linux-uuid xorg-libICE xorg-libSM"
15 BUILD_DEPENDS="gtk+-dev xorg-libSM-dev wget"
16 GENERIC_PIXMAPS="no"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/Latest version is/!d;s|.*is ||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i '/#include <glib\/glist.h>/d' src/xpad-undo.c
29 ./configure $CONFIGURE_ARGS &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share/icons/hicolor/48x48/apps/
37 cp -a $install/usr/bin $fs/usr
38 cp -a $stuff/xpad.png $fs/usr/share/icons/hicolor/48x48/apps/
39 }