wok-next view libcss/receipt @ rev 19868

Up netsurf stuff, lxpanel, slitaz-next...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Sep 27 17:54:12 2017 +0300 (2017-09-27)
parents 46d3691a4f80
children b19ddba309f9
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libcss"
4 COMMIT="3e58dd9a29a10cd6400031f0b510084ffacc41d0"
5 VERSION="0.6.1-170920"
6 CATEGORY="system-tools"
7 SHORT_DESC="CSS parser and selection engine"
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="http://www.netsurf-browser.org/projects/libcss/"
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 libwapcaplet-dev libparserutils-dev"
21 SPLIT="libcss-dev"
23 compile_rules() {
24 [ -z "$COMMIT" ] && cd $VERSION
26 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile
27 export CFLAGS="-Wno-error=unused-but-set-variable"
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 libcss)
40 copy @std
41 DEPENDS="libparserutils libwapcaplet"
42 ;;
43 *-dev)
44 copy @dev
45 DEPENDS="libcss libparserutils-dev libwapcaplet-dev"
46 ;;
47 esac
48 }