# SliTaz package receipt. PACKAGE="libpqxx" VERSION="6.1.0" CATEGORY="misc" SHORT_DESC="The official C++ client API for PostgreSQL" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://github.com/jtv/libpqxx/" WGET_URL="https://github.com/jtv/libpqxx/archive/$VERSION.tar.gz" BUILD_DEPENDS="gcc49 postgresql-dev" DEPENDS="pkg-config" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./configure CC=gcc-49 CXX=g++-49 --prefix=/usr \ --disable-documentation \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/usr $fs }