SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ola"

# SliTaz package receipt.

PACKAGE="ola"
VERSION="0.9.8"
CATEGORY="network"
SHORT_DESC="Open Lighting Architecture"
MAINTAINER="kult-ex@aon.at"
LICENSE="LGPL2.1"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://www.openlighting.org/ola/"
WGET_URL="https://github.com/OpenLightingProject/ola/releases/download/$VERSION/$TARBALL"

DEPENDS="libftdi liblo libmicrohttpd ncurses protobuf"
BUILD_DEPENDS="libtool flex protobuf-dev util-linux-uuid-dev cppunit-dev \
libmicrohttpd-dev libftdi-dev libusb-dev liblo-dev ncurses-dev"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|AM_PATH_CPPUNIT(\[|PKG_CHECK_MODULES([CPPUNIT], [cppunit >= |' configure.ac
    sed -i 's|libusb_set_debug(m_context,\(.*\);|#if LIBUSB_API_VERSION >= 0x01000106\
    libusb_set_option(m_context, LIBUSB_OPTION_LOG_LEVEL,\1;\
#else\
    \0\
#endif|' tools/ja-rule/USBDeviceManager.cpp plugins/usbdmx/*yncPluginImpl.cpp
    export LDFLAGS="$LDFLAGS -ltinfo"
    autoreconf -i
    ./configure \
        --prefix=/usr \
        $CONFIGURE_ARGS &&
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/olad
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/share $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)