wok-6.x view tslib/receipt @ rev 24584
Up tazlito (534)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 27 21:20:06 2022 +0000 (2022-02-27) |
parents | 0d08d15e81f8 |
children | e375c479e25e |
line source
1 # SliTaz package receipt.
3 PACKAGE="tslib"
4 VERSION="1.21"
5 CATEGORY="development"
6 SHORT_DESC="Abstraction layer for touchscreen panel events."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="http://www.tslib.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/libts/$PACKAGE/archive/$VERSION.tar.gz"
14 BUILD_DEPENDS="autoconf automake libtool"
16 HOST_ARCH="i486 arm"
18 # Handle cross compilation
19 case "$ARCH" in
20 arm*) export ac_cv_func_malloc_0_nonnull=yes ;;
21 esac
23 current_version()
24 {
25 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
26 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./autogen.sh &&
33 ./configure \
34 --sysconfdir=/etc \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib/ts
45 cp -a $install/usr/lib/ts/*.so* $fs/usr/lib/ts
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/etc $fs
49 }