void-packages/srcpkgs/obexftp/template
2016-04-08 07:34:47 +02:00

67 lines
1.8 KiB
Bash

# Template file for 'obexftp'
pkgname=obexftp
version=0.24.2
revision=1
wrksrc=${pkgname}-${version}-Source
build_style=cmake
hostmakedepends="pkg-config"
makedepends="openobex-devel fuse-devel libbluetooth-devel expat-devel"
short_desc="OBEX transfer utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
distfiles="${SOURCEFORGE_SITE}/openobex/${pkgname}-${version}-Source.tar.gz"
checksum=d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3
nocross="crctable needs to be built for the host"
post_install() {
# Do not require 'bluetooth', does not exist.
sed -i '/Requires:/s/bluetooth//' ${DESTDIR}/usr/lib/pkgconfig/obexftp.pc
}
libbfb_package() {
short_desc="bfb protocol library"
pkg_install() {
vmove "usr/lib/libbfb.so.*"
}
}
libbfb-devel_package() {
short_desc="bfb protocol library - development files"
depends="libbfb-${version}_${revision}"
pkg_install() {
vmove usr/include/bfb
vmove usr/lib/libbfb.so
}
}
libmulticobex_package() {
short_desc="Multi-protocol cable OBEX library"
pkg_install() {
vmove "usr/lib/libmulticobex.so.*"
}
}
libmulticobex-devel_package() {
short_desc="Multi-protocol cable OBEX library - development files"
depends="libmulticobex-${version}_${revision}"
pkg_install() {
vmove usr/include/multicobex
vmove usr/lib/libmulticobex.so
}
}
libobexftp_package() {
short_desc="OBject EXchange file transfer library"
pkg_install() {
vmove "usr/lib/libobexftp.so.*"
}
}
libobexftp-devel_package() {
short_desc="OBject EXchange file transfer library - development files"
depends="openobex-devel libbfb-devel-${version}_${revision}
libmulticobex-devel-${version}_${revision}
libobexftp-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}