# SliTaz package receipt. PACKAGE="obexftp" VERSION="0.24.2" CATEGORY="network" SHORT_DESC="OBEX Server and Client." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="http://triq.net/obex/" TARBALL="$PACKAGE-$VERSION-Source.tar.gz" WGET_URL="$SF_MIRROR/openobex/$PACKAGE/$VERSION/$TARBALL" TAGS="bluetooth" DEPENDS="bluez openobex fuse2 expat" BUILD_DEPENDS="cmake bluez-dev openobex-dev fuse2-dev expat-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/openobex/files/obexftp/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/obexftp/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/bin $fs/usr }