wok-next view libparserutils/receipt @ rev 20206
Up PyQt-x11-gpl (4.12.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 09:19:58 2017 +0100 (2017-11-04) |
parents | 46d3691a4f80 |
children | c4e53a39395a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libparserutils"
4 COMMIT=""
5 VERSION="0.2.3"
6 CATEGORY="system-tools"
7 SHORT_DESC="Library for building efficient parsers"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="http://www.netsurf-browser.org/projects/libparserutils/"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2"
14 BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot"
15 if [ -n "$COMMIT" ]; then
16 WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2"
17 else
18 WGET_URL="$BASE_URL/release/$VERSION.tar.bz2"
19 fi
21 BUILD_DEPENDS="netsurf-buildsystem"
22 SPLIT="libparserutils-dev"
24 compile_rules() {
25 [ -z "$COMMIT" ] && cd $VERSION
27 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile
28 echo 'CFLAGS += -DWITH_ICONV_FILTER' > Makefile.config.override
30 make \
31 PREFIX=/usr \
32 LIBDIR=lib \
33 INCLUDEDIR=include \
34 COMPONENT_TYPE=lib-shared \
35 install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 libparserutils) copy @std;;
41 *-dev) copy @dev;;
42 esac
43 }