wok-next view libdom/receipt @ rev 20567
xfe: update receipt; qt5: undo `fix math`
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 11 01:07:35 2018 +0300 (2018-04-11) |
parents | 417f77dae192 |
children | 228b9c951d97 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libdom"
4 COMMIT=""
5 VERSION="0.3.2"
6 CATEGORY="web"
7 SHORT_DESC="Implementation of the W3C DOM"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MIT"
10 WEB_SITE="http://www.netsurf-browser.org/projects/libdom/"
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 libparserutils-dev libwapcaplet-dev \
21 libhubbub-dev expat-dev"
22 SPLIT="libdom-dev"
24 compile_rules() {
25 [ -z "$COMMIT" ] && cd $VERSION
27 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile
28 export CFLAGS='-Wno-error=unused-but-set-variable'
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 libdom)
41 copy @std
42 DEPENDS="expat libhubbub libparserutils libwapcaplet"
43 ;;
44 *-dev)
45 copy @dev
46 DEPENDS="libdom expat-dev libhubbub-dev"
47 ;;
48 esac
49 TAGS="netsurf"
50 }