# SliTaz package receipt. PACKAGE="openobex" VERSION="1.7.2" CATEGORY="network" TAGS="bluetooth" SHORT_DESC="Object Exchange (OBEX) protocol." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://gitlab.com/openobex/mainline" TARBALL="$PACKAGE-$VERSION-Source.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL" DEPENDS="bluez libusb" BUILD_DEPENDS="bluez-dev cmake libusb-dev" current_version() { wget -O - $WEB_SITE/-/tags 2>/dev/null | \ sed '/tar.gz/!d;/data/d;s|.*/mainline-\(.*\).tar.gz".*|\1|' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make && make openobex-apps && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/lib $fs cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib }