wok view tslib/receipt @ rev 25503

f3: include extra programs
author Hans-G?nter Theisgen
date Fri Jan 27 10:37:43 2023 +0100 (15 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tslib"
4 VERSION="1.22"
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 }