wok annotate libpqxx/receipt @ rev 24133
Up tazinst (115)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 23 15:17:56 2021 +0000 (2021-10-23) |
parents | 4a1336eda4f9 |
children | 362a5a98467f |
rev | line source |
---|---|
pascal@20216 | 1 # SliTaz package receipt. |
pascal@20216 | 2 |
pascal@20216 | 3 PACKAGE="libpqxx" |
pascal@20216 | 4 VERSION="6.1.0" |
pascal@20216 | 5 CATEGORY="misc" |
pascal@20216 | 6 SHORT_DESC="The official C++ client API for PostgreSQL" |
pascal@20216 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20216 | 8 LICENSE="BSD" |
pascal@20216 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20216 | 10 WEB_SITE="http://pqxx.org/development/libpqxx/" |
pascal@20216 | 11 WGET_URL="https://github.com/jtv/libpqxx/archive/$VERSION.tar.gz" |
pascal@20216 | 12 |
pascal@20216 | 13 BUILD_DEPENDS="gcc49 postgresql-dev" |
pascal@20216 | 14 DEPENDS="pkg-config" |
pascal@20216 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@20216 | 22 # Rules to configure and make the package. |
pascal@20216 | 23 compile_rules() |
pascal@20216 | 24 { |
pascal@20216 | 25 ./configure CC=gcc-49 CXX=g++-49 --prefix=/usr \ |
pascal@20216 | 26 --disable-documentation \ |
pascal@20216 | 27 $CONFIGURE_ARGS && |
pascal@20216 | 28 make && |
pascal@20216 | 29 make DESTDIR=$DESTDIR install |
pascal@20216 | 30 } |
pascal@20216 | 31 |
pascal@20216 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20216 | 33 genpkg_rules() |
pascal@20216 | 34 { |
pascal@20216 | 35 cp -a $install/usr $fs |
pascal@20216 | 36 } |