wok-next view libcss/receipt @ rev 20949

Fix homepages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Sep 01 16:21:51 2018 +0300 (2018-09-01)
parents 417f77dae192
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libcss"
4 COMMIT=""
5 VERSION="0.7.0"
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 TAGS="netsurf"
49 }