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