wok view ola/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (10 months ago)
parents e1e1678c5265
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ola"
4 VERSION="0.9.8"
5 CATEGORY="network"
6 SHORT_DESC="Open Lighting Architecture"
7 MAINTAINER="kult-ex@aon.at"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.openlighting.org/ola/"
11 WGET_URL="https://github.com/OpenLightingProject/ola/releases/download/$VERSION/$TARBALL"
13 DEPENDS="libftdi liblo libmicrohttpd ncurses protobuf"
14 BUILD_DEPENDS="libtool flex protobuf-dev util-linux-uuid-dev cppunit-dev \
15 libmicrohttpd-dev libftdi-dev libusb-dev liblo-dev ncurses-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|AM_PATH_CPPUNIT(\[|PKG_CHECK_MODULES([CPPUNIT], [cppunit >= |' configure.ac
28 sed -i 's|libusb_set_debug(m_context,\(.*\);|#if LIBUSB_API_VERSION >= 0x01000106\
29 libusb_set_option(m_context, LIBUSB_OPTION_LOG_LEVEL,\1;\
30 #else\
31 \0\
32 #endif|' tools/ja-rule/USBDeviceManager.cpp plugins/usbdmx/*yncPluginImpl.cpp
33 export LDFLAGS="$LDFLAGS -ltinfo"
34 autoreconf -i
35 ./configure \
36 --prefix=/usr \
37 $CONFIGURE_ARGS &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib/olad
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 cp -a $install/usr/share $fs/usr
48 }