wok annotate plsh/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents 2f427dd95bbc
children f67cd84ed581
rev   line source
pascal@20102 1 # SliTaz package receipt.
pascal@20102 2
pascal@20102 3 PACKAGE="plsh"
Hans-G?nter@21687 4 VERSION="1.20171014"
pascal@20102 5 CATEGORY="misc"
pascal@20102 6 SHORT_DESC="A procedural language handler for PostgreSQL using any shell."
pascal@20102 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20102 8 LICENSE="BSD"
Hans-G?nter@21687 9 WEB_SITE="https://github.com/petere/plsh"
Hans-G?nter@21687 10
pascal@20102 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20102 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
pascal@20102 13
pascal@20102 14 DEPENDS="postgresql"
pascal@20102 15 BUILD_DEPENDS="postgresql-dev"
pascal@20102 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@20102 23 # Rules to configure and make the package.
pascal@20102 24 compile_rules()
pascal@20102 25 {
pascal@20102 26 make
pascal@20102 27 }
pascal@20102 28
pascal@20102 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20102 30 genpkg_rules()
pascal@20102 31 {
Hans-G?nter@21687 32 mkdir -p $fs/usr/lib/postgresql
Hans-G?nter@21687 33 mkdir -p $fs/usr/share/postgresql/extension
pascal@20102 34 mkdir -p $install/usr/share/doc
Hans-G?nter@21687 35
Hans-G?nter@21687 36 cp $src/plsh.so $fs/usr/lib/postgresql
Hans-G?nter@21687 37 cp $src/plsh*.sql $fs/usr/share/postgresql/extension
Hans-G?nter@21687 38 cp $src/plsh.control $fs/usr/share/postgresql/extension
Hans-G?nter@21687 39 cp $src/[CNR]* $install/usr/share/doc
pascal@20102 40 }