wok-next view libparserutils/receipt @ rev 20519
Synchronize wok-hg with wok. Some yesterday's patches are lost :(
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 23 10:45:35 2018 +0200 (2018-03-23) |
parents | c4e53a39395a |
children | 8b5b2a6d07b8 |
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/"
12 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2"
13 BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot"
14 if [ -n "$COMMIT" ]; then
15 WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2"
16 else
17 WGET_URL="$BASE_URL/release/$VERSION.tar.bz2"
18 fi
20 BUILD_DEPENDS="netsurf-buildsystem"
21 SPLIT="libparserutils-dev"
23 compile_rules() {
24 [ -z "$COMMIT" ] && cd $VERSION
26 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile
27 echo 'CFLAGS += -DWITH_ICONV_FILTER' > Makefile.config.override
29 make \
30 PREFIX=/usr \
31 LIBDIR=lib \
32 INCLUDEDIR=include \
33 COMPONENT_TYPE=lib-shared \
34 install
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 libparserutils) copy @std;;
40 *-dev) copy @dev;;
41 esac
42 TAGS="netsurf"
43 }