wok annotate plsh/receipt @ rev 25616
Add emu2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 26 15:51:29 2023 +0000 (10 months ago) |
parents | f67cd84ed581 |
children |
rev | line source |
---|---|
pascal@20102 | 1 # SliTaz package receipt. |
pascal@20102 | 2 |
pascal@20102 | 3 PACKAGE="plsh" |
Hans-G?nter@25143 | 4 VERSION="1.20200522" |
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@25143 | 10 REPOLOGY="postgresql-plsh" |
Hans-G?nter@21687 | 11 |
pascal@20102 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20102 | 13 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
pascal@20102 | 14 |
pascal@20102 | 15 DEPENDS="postgresql" |
pascal@20102 | 16 BUILD_DEPENDS="postgresql-dev" |
pascal@20102 | 17 |
pascal@25601 | 18 # What is the latest version available today? |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
pascal@20102 | 25 # Rules to configure and make the package. |
pascal@20102 | 26 compile_rules() |
pascal@20102 | 27 { |
pascal@20102 | 28 make |
pascal@20102 | 29 } |
pascal@20102 | 30 |
pascal@20102 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20102 | 32 genpkg_rules() |
pascal@20102 | 33 { |
Hans-G?nter@21687 | 34 mkdir -p $fs/usr/lib/postgresql |
Hans-G?nter@21687 | 35 mkdir -p $fs/usr/share/postgresql/extension |
pascal@20102 | 36 mkdir -p $install/usr/share/doc |
Hans-G?nter@21687 | 37 |
Hans-G?nter@21687 | 38 cp $src/plsh.so $fs/usr/lib/postgresql |
Hans-G?nter@21687 | 39 cp $src/plsh*.sql $fs/usr/share/postgresql/extension |
Hans-G?nter@21687 | 40 cp $src/plsh.control $fs/usr/share/postgresql/extension |
Hans-G?nter@21687 | 41 cp $src/[CNR]* $install/usr/share/doc |
pascal@20102 | 42 } |