void-packages/srcpkgs/openobex/template

32 lines
1 KiB
Bash

# Template file for 'openobex'
pkgname=openobex
version=1.7.2
revision=1
wrksrc="${pkgname}-${version}-Source"
build_style=cmake
hostmakedepends="pkg-config libxslt docbook-xsl"
makedepends="libusb-devel libbluetooth-devel eudev-libudev-devel"
replaces="libopenobex>=0"
short_desc="OBEX protocol implementation"
homepage="http://dev.zuckschwerdt.org/openobex/"
license="LGPL-2"
maintainer="Juan RP <xtraeme@voidlinux.org>"
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}-${version}-Source.tar.gz"
checksum=158860aaea52f0fce0c8e4b64550daaae06df2689e05834697b7e8c7d73dd4fc
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
}
}