SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pgadmin"

# SliTaz package receipt.

PACKAGE="pgadmin"
VERSION="1.22.2"
CATEGORY="utilities"
SHORT_DESC="PostgreSQL administration and management tools."
MAINTAINER="erjo@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://www.pgadmin.org"

SOURCE="pgadmin3"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="ftp://ftp.ch.postgresql.org/mirror/postgresql/pgadmin3/release/v$VERSION/src/$TARBALL"
WGET_URL="https://ftp.postgresql.org/pub/$PACKAGE/$SOURCE/v$VERSION/src/$TARBALL"

DEPENDS="gtk+ libcomerr3 libkrb5 libxslt postgresql wxWidgets28 xorg-libXxf86vm"
BUILD_DEPENDS="libcrypto openssl-dev postgresql postgresql-dev libxml2-dev \
    libxslt-dev wxWidgets28-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://ftp.postgresql.org/pub/$PACKAGE/$SOURCE/ 2>/dev/null | \
    sed '/v[0-9]/!d;s|.*">v||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./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()
{
    mkdir -p $fs/usr/share/pgadmin3/i18n

    cp -a $install/usr/bin \
        $fs/usr
    cp -a $install/usr/share/pgadmin3/*.ini \
        $fs/usr/share/pgadmin3
    cp -a $install/usr/share/pgadmin3/branding \
        $fs/usr/share/pgadmin3
    cp -a $install/usr/share/pgadmin3/i18n/de_DE \
        $fs/usr/share/pgadmin3/i18n
    cp -a $install/usr/share/pgadmin3/i18n/fr_FR \
        $fs/usr/share/pgadmin3/i18n
    cp -a $install/usr/share/pgadmin3/i18n/*.lng \
        $fs/usr/share/pgadmin3/i18n

    cp -a stuff/applications    $fs/usr/share
    cp -a stuff/icons        $fs/usr/share
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)