wok-next annotate openobex/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents b863487b8e7a
children d5aab818505e
rev   line source
al@20657 1 # SliTaz package receipt v2.
al@20657 2
al@20657 3 PACKAGE="openobex"
al@20657 4 VERSION="1.7.2"
al@20657 5 CATEGORY="libs"
al@20657 6 SHORT_DESC="OpenOBEX is an Open-source library for the OBject EXchange protocol"
al@20657 7 MAINTAINER="al.bobylev@gmail.com"
al@20657 8 LICENSE="LGPL2"
al@20657 9 WEB_SITE="https://gitlab.com/openobex/mainline"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/openobex.html"
al@20657 11
al@20657 12 TARBALL="openobex-$VERSION-Source.tar.gz"
al@20657 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@20657 14
al@20657 15 BUILD_DEPENDS="cmake bluez-dev libusb-dev libusb-compat-dev"
al@20657 16 SPLIT="openobex-dev"
al@20657 17
al@20657 18 compile_rules() {
al@20657 19 # group plugdev (83) provided by slitaz-base-files
al@20657 20
al@20657 21 mkdir build
al@20657 22 cd build
al@20657 23
al@20657 24 cmake \
al@20657 25 -DCMAKE_INSTALL_PREFIX=/usr \
al@20657 26 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
al@20657 27 -DCMAKE_BUILD_TYPE=Release \
al@20657 28 -Wno-dev \
al@20657 29 .. &&
al@20657 30 make &&
al@20657 31 make install
al@20657 32 }
al@20657 33
al@20657 34 genpkg_rules() {
al@20657 35 case $PACKAGE in
al@20657 36 openobex)
al@20657 37 copy @std
al@20657 38 DEPENDS="libusb"
al@20657 39 ;;
al@20657 40 *-dev)
al@20657 41 copy @dev
al@20657 42 DEPENDS="openobex libusb-dev"
al@20657 43 ;;
al@20657 44 esac
al@20657 45 }