33 lines
1.0 KiB
Bash
33 lines
1.0 KiB
Bash
# Template file for 'openobex'
|
|
pkgname=openobex
|
|
version=1.7.1
|
|
revision=5
|
|
wrksrc="${pkgname}-${version}-Source"
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config cmake libxslt docbook-xsl"
|
|
makedepends="libusb-devel libbluetooth-devel libudev-devel"
|
|
replaces="libopenobex>=0"
|
|
short_desc="OBEX protocol implementation"
|
|
homepage="http://dev.zuckschwerdt.org/openobex/"
|
|
license="LGPL-2"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}-${version}-Source.tar.gz"
|
|
checksum=3b264665d90901ea4ff720332ffb9b6d1d8f67187463d3a3279caddc7205ea57
|
|
|
|
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
|
|
}
|
|
}
|