wok-next annotate libwapcaplet/receipt @ rev 19904
avrdude: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 12 18:55:33 2017 +0200 (2017-10-12) |
parents | 46d3691a4f80 |
children | c4e53a39395a |
rev | line source |
---|---|
al@19811 | 1 # SliTaz package receipt v2. |
erjo@5931 | 2 |
erjo@5931 | 3 PACKAGE="libwapcaplet" |
al@19868 | 4 COMMIT="" |
al@19811 | 5 VERSION="0.4.0" |
erjo@5931 | 6 CATEGORY="system-tools" |
al@19811 | 7 SHORT_DESC="String internment library with rapid string comparison" |
erjo@5931 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15482 | 9 LICENSE="MIT" |
al@19811 | 10 WEB_SITE="http://www.netsurf-browser.org/projects/libwapcaplet/" |
al@19811 | 11 HOST_ARCH="i486 arm" |
al@19811 | 12 |
al@19868 | 13 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2" |
al@19868 | 14 BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot" |
al@19868 | 15 if [ -n "$COMMIT" ]; then |
al@19868 | 16 WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2" |
al@19868 | 17 else |
al@19868 | 18 WGET_URL="$BASE_URL/release/$VERSION.tar.bz2" |
al@19868 | 19 fi |
al@19811 | 20 |
al@19811 | 21 BUILD_DEPENDS="netsurf-buildsystem" |
al@19811 | 22 SPLIT="libwapcaplet-dev" |
erjo@5931 | 23 |
al@19868 | 24 compile_rules() { |
al@19868 | 25 [ -z "$COMMIT" ] && cd $VERSION |
al@19868 | 26 |
al@19868 | 27 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' Makefile |
al@19811 | 28 |
al@19811 | 29 make \ |
al@19811 | 30 PREFIX=/usr \ |
al@19868 | 31 LIBDIR=lib \ |
al@19811 | 32 INCLUDEDIR=include \ |
al@19868 | 33 COMPONENT_TYPE=lib-shared \ |
al@19868 | 34 install |
erjo@5931 | 35 } |
erjo@5931 | 36 |
al@19868 | 37 genpkg_rules() { |
al@19811 | 38 case $PACKAGE in |
al@19811 | 39 libwapcaplet) copy @std;; |
al@19811 | 40 *-dev) copy @dev;; |
al@19811 | 41 esac |
erjo@5931 | 42 } |