SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gmrun"

# SliTaz package receipt.

PACKAGE="gmrun"
VERSION="0.9.2"
CATEGORY="utilities"
SHORT_DESC="Program launcher with autocompletion."
MAINTAINER="rocky@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/WdesktopX/gmrun"
WGET_URL="$SF_MIRROR/gmrun/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="gtk+ gcc-lib-base popt"
BUILD_DEPENDS="gtk+-dev popt-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/WdesktopX/gmrun/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    while read file; do
        [ -f done.$file ] && continue
        echo "Apply $file..."
        patch -p1 < $stuff/$file || return 1
        touch done.$file
    done <<EOT
gmrun-0.9.2-gcc43.patch
EOT
    ./configure --prefix=/usr \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

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