wok-next diff libparserutils/receipt @ rev 20428
Port changes from cooking wok: fake-sane, sane-backends.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jan 24 13:17:46 2018 +0200 (2018-01-24) |
parents | 46d3691a4f80 |
children | c4e53a39395a |
line diff
1.1 --- a/libparserutils/receipt Thu Jul 20 00:33:52 2017 +0300 1.2 +++ b/libparserutils/receipt Wed Jan 24 13:17:46 2018 +0200 1.3 @@ -1,6 +1,7 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="libparserutils" 1.7 +COMMIT="" 1.8 VERSION="0.2.3" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="Library for building efficient parsers" 1.11 @@ -9,24 +10,32 @@ 1.12 WEB_SITE="http://www.netsurf-browser.org/projects/libparserutils/" 1.13 HOST_ARCH="i486 arm" 1.14 1.15 -TARBALL="$PACKAGE-$VERSION-src.tar.gz" 1.16 -WGET_URL="http://download.netsurf-browser.org/libs/releases/$TARBALL" 1.17 +TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2" 1.18 +BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot" 1.19 +if [ -n "$COMMIT" ]; then 1.20 + WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2" 1.21 +else 1.22 + WGET_URL="$BASE_URL/release/$VERSION.tar.bz2" 1.23 +fi 1.24 1.25 BUILD_DEPENDS="netsurf-buildsystem" 1.26 SPLIT="libparserutils-dev" 1.27 1.28 -# Rules to configure and make the package. 1.29 -compile_rules() 1.30 -{ 1.31 - sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile && 1.32 - make INCLUDEDIR=include LIBDIR=lib PREFIX=/usr COMPONENT_TYPE="lib-shared" && 1.33 - make INCLUDEDIR=include LIBDIR=lib PREFIX=/usr COMPONENT_TYPE="lib-shared" \ 1.34 - DESTDIR="$install" install 1.35 +compile_rules() { 1.36 + [ -z "$COMMIT" ] && cd $VERSION 1.37 + 1.38 + sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile 1.39 + echo 'CFLAGS += -DWITH_ICONV_FILTER' > Makefile.config.override 1.40 + 1.41 + make \ 1.42 + PREFIX=/usr \ 1.43 + LIBDIR=lib \ 1.44 + INCLUDEDIR=include \ 1.45 + COMPONENT_TYPE=lib-shared \ 1.46 + install 1.47 } 1.48 1.49 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.50 -genpkg_rules() 1.51 -{ 1.52 +genpkg_rules() { 1.53 case $PACKAGE in 1.54 libparserutils) copy @std;; 1.55 *-dev) copy @dev;;