void-packages/srcpkgs/openobex/template

33 lines
996 B
Bash

# Template file for 'openobex'
pkgname=openobex
version=1.7.2
revision=2
build_style=cmake
hostmakedepends="pkg-config libxslt docbook-xsl"
makedepends="libusb-devel libbluetooth-devel eudev-libudev-devel"
short_desc="OBEX protocol implementation"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2"
homepage="http://dev.zuckschwerdt.org/openobex/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-Source.tar.gz"
checksum=158860aaea52f0fce0c8e4b64550daaae06df2689e05834697b7e8c7d73dd4fc
replaces="libopenobex>=0"
pre_configure() {
sed -i 's|MODE="660", GROUP="plugdev"|TAG+="uaccess"|' udev/openobex.rules.in
sed -i 's|^project ( openobex \(C.*\) )|project ( openobex \1 CXX )|' CMakeLists.txt
}
openobex-devel_package() {
depends="libusb-devel ${sourcepkg}>=${version}_${revision}"
replaces="libopenobex-devel>=0"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/lib/cmake
}
}