wok annotate ola/receipt @ rev 25600

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