wok-6.x annotate tslib/receipt @ rev 25107

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