SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "plsh"

# SliTaz package receipt.

PACKAGE="plsh"
VERSION="1.20200522"
CATEGORY="misc"
SHORT_DESC="A procedural language handler for PostgreSQL using any shell."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://github.com/petere/plsh"
REPOLOGY="postgresql-plsh"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"

DEPENDS="postgresql"
BUILD_DEPENDS="postgresql-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/postgresql
    mkdir -p $fs/usr/share/postgresql/extension
    mkdir -p $install/usr/share/doc

    cp $src/plsh.so        $fs/usr/lib/postgresql
    cp $src/plsh*.sql    $fs/usr/share/postgresql/extension
    cp $src/plsh.control    $fs/usr/share/postgresql/extension
    cp $src/[CNR]*        $install/usr/share/doc
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)