wok view pysdm/receipt @ rev 25686

Use System category for pm-suspend entry
author Stanislas Leduc <shann@slitaz.org>
date Sat Apr 06 12:03:22 2024 +0200 (7 months ago)
parents 7dd01dedad38
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pysdm"
4 VERSION="0.4.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="A Storage Device Manager via udev (and not fstab)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://pysdm.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="pygtk"
14 BUILD_DEPENDS="python python-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/pysdm/files/pysdm/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;/tar/!d;s|.*/pysdm-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
28 cd $src
29 sed -i 's/gksudo/subox/;s/Settings;//' data/pysdm.desktop
30 ./configure --prefix=/usr --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 }