wok-next annotate libcss/receipt @ rev 20777
gnome-calculator: up (3.28.1); go-bin and go: up (1.10.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 22:02:40 2018 +0300 (2018-06-06) |
parents | 417f77dae192 |
children |
rev | line source |
---|---|
al@19811 | 1 # SliTaz package receipt v2. |
erjo@5930 | 2 |
erjo@5930 | 3 PACKAGE="libcss" |
al@20519 | 4 COMMIT="" |
al@20519 | 5 VERSION="0.7.0" |
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 |
al@20519 | 48 TAGS="netsurf" |
erjo@5930 | 49 } |