wok-next annotate libcss/receipt @ rev 20343
unbound: create /var/lib/unbound
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 17 18:18:29 2017 +0100 (2017-11-17) |
parents | 46d3691a4f80 |
children | b19ddba309f9 |
rev | line source |
---|---|
al@19811 | 1 # SliTaz package receipt v2. |
erjo@5930 | 2 |
erjo@5930 | 3 PACKAGE="libcss" |
al@19868 | 4 COMMIT="3e58dd9a29a10cd6400031f0b510084ffacc41d0" |
al@19868 | 5 VERSION="0.6.1-170920" |
erjo@5930 | 6 CATEGORY="system-tools" |
al@19811 | 7 SHORT_DESC="CSS parser and selection engine" |
erjo@5930 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15472 | 9 LICENSE="MIT" |
pascal@15112 | 10 WEB_SITE="http://www.netsurf-browser.org/projects/libcss/" |
al@19811 | 11 |
al@19868 | 12 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2" |
al@19868 | 13 BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot" |
al@19868 | 14 if [ -n "$COMMIT" ]; then |
al@19868 | 15 WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2" |
al@19868 | 16 else |
al@19868 | 17 WGET_URL="$BASE_URL/release/$VERSION.tar.bz2" |
al@19868 | 18 fi |
pascal@15112 | 19 |
al@19811 | 20 BUILD_DEPENDS="netsurf-buildsystem libwapcaplet-dev libparserutils-dev" |
al@19811 | 21 SPLIT="libcss-dev" |
erjo@5930 | 22 |
al@19868 | 23 compile_rules() { |
al@19868 | 24 [ -z "$COMMIT" ] && cd $VERSION |
al@19811 | 25 |
al@19868 | 26 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile |
al@19868 | 27 export CFLAGS="-Wno-error=unused-but-set-variable" |
al@19868 | 28 |
al@19868 | 29 make \ |
al@19868 | 30 PREFIX=/usr \ |
al@19868 | 31 LIBDIR=lib \ |
al@19868 | 32 INCLUDEDIR=include \ |
al@19868 | 33 COMPONENT_TYPE=lib-shared \ |
al@19868 | 34 install |
erjo@5930 | 35 } |
erjo@5930 | 36 |
al@19868 | 37 genpkg_rules() { |
al@19811 | 38 case $PACKAGE in |
al@19811 | 39 libcss) |
al@19811 | 40 copy @std |
al@19811 | 41 DEPENDS="libparserutils libwapcaplet" |
al@19811 | 42 ;; |
al@19811 | 43 *-dev) |
al@19811 | 44 copy @dev |
al@19811 | 45 DEPENDS="libcss libparserutils-dev libwapcaplet-dev" |
al@19811 | 46 ;; |
al@19811 | 47 esac |
erjo@5930 | 48 } |