SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pysdm"

# SliTaz package receipt.

PACKAGE="pysdm"
VERSION="0.4.1"
CATEGORY="system-tools"
SHORT_DESC="A Storage Device Manager via udev (and not fstab)."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://pysdm.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="pygtk"
BUILD_DEPENDS="python python-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/pysdm/files/pysdm/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;/tar/!d;s|.*/pysdm-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{

    cd $src
    sed -i 's/gksudo/subox/;s/Settings;//' data/pysdm.desktop
    ./configure --prefix=/usr --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)