wok-next diff libnslayout/receipt @ rev 20180
opencc: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 02 12:28:56 2017 +0100 (2017-11-02) |
parents | |
children | b19ddba309f9 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libnslayout/receipt Thu Nov 02 12:28:56 2017 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="libnslayout" 1.7 +COMMIT="b77ae8ab7d1ce435d8afd3c77613c5a56c477025" 1.8 +VERSION="0-170617" 1.9 +CATEGORY="libs" 1.10 +SHORT_DESC="NetSurf Layout Engine" 1.11 +MAINTAINER="al.bobylev@gmail.com" 1.12 +LICENSE="MIT" 1.13 +WEB_SITE="http://source.netsurf-browser.org/libnslayout.git/" 1.14 + 1.15 +TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2" 1.16 +BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot" 1.17 +if [ -n "$COMMIT" ]; then 1.18 + WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2" 1.19 +else 1.20 + WGET_URL="$BASE_URL/release/$VERSION.tar.bz2" 1.21 +fi 1.22 + 1.23 +BUILD_DEPENDS="netsurf-buildsystem libcss-dev libdom-dev libwapcaplet-dev \ 1.24 +libparserutils-dev" 1.25 +SPLIT="libnslayout-dev" 1.26 + 1.27 +compile_rules() { 1.28 + [ -z "$COMMIT" ] && cd $VERSION 1.29 + 1.30 + make \ 1.31 + PREFIX=/usr \ 1.32 + LIBDIR=lib \ 1.33 + INCLUDEDIR=include \ 1.34 + COMPONENT_TYPE=lib-shared \ 1.35 + install 1.36 +} 1.37 + 1.38 +genpkg_rules() { 1.39 + case $PACKAGE in 1.40 + libnslayout) 1.41 + copy @std 1.42 + DEPENDS="expat libcss libdom libhubbub libparserutils libwapcaplet" 1.43 + ;; 1.44 + *-dev) 1.45 + copy @dev 1.46 + DEPENDS="libnslayout libcss-dev libdom-dev libparserutils-dev \ 1.47 + libwapcaplet-dev" 1.48 + ;; 1.49 + esac 1.50 +}