void-packages/srcpkgs/obexftp/template
2015-08-21 13:41:01 +02:00

70 lines
1.8 KiB
Bash

# Template file for 'obexftp'
pkgname=obexftp
version=0.24
revision=4
wrksrc=${pkgname}-${version}-Source
build_style=cmake
hostmakedepends="pkg-config cmake"
makedepends="openobex-devel fuse-devel libbluetooth-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=b907965608bf0e60c69bc45f074ce1a2ffeb809b4502a7082c6d95e3c73dfe6b
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
}
}