mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 12:44:37 +08:00
48 lines
1.6 KiB
Bash
48 lines
1.6 KiB
Bash
# Platform Packages for Chakra, part of chakra-project.org
|
|
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
|
|
pkgbase=obexd
|
|
pkgname=('obexd-client' 'obexd-server')
|
|
pkgver=0.48
|
|
pkgrel=3
|
|
url="http://www.bluez.org/"
|
|
arch=('x86_64')
|
|
license=('GPL2')
|
|
makedepends=('openobex' 'libical')
|
|
source=(http://www.kernel.org/pub/linux/bluetooth/${pkgbase}-${pkgver}.tar.bz2)
|
|
md5sums=('835125191ea2ffd1260d374d79d1bacb')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
# the sed line is needed because newer versions of gcc are more strict regarding includes
|
|
sed -i 's/#include <string.h>/&\n#include <stdio.h>/' plugins/mas.c
|
|
./configure --prefix=/usr --libexecdir=/usr/lib/obexd
|
|
make
|
|
}
|
|
|
|
package_obexd-client() {
|
|
pkgdesc="D-Bus service providing high-level OBEX client side functionality"
|
|
depends=('openobex' 'glib2')
|
|
provides=("obexd=${pkgver}")
|
|
replaces=('obexd')
|
|
conflicts=('obexd')
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}/client"
|
|
install -m755 -d "${pkgdir}/usr/lib/obexd"
|
|
install -m755 -d "${pkgdir}/usr/share/dbus-1/services"
|
|
install -m755 obex-client "${pkgdir}/usr/lib/obexd/"
|
|
install -m644 obex-client.service "${pkgdir}/usr/share/dbus-1/services/"
|
|
}
|
|
|
|
package_obexd-server() {
|
|
pkgdesc="D-Bus service providing high-level OBEX server side functionality"
|
|
depends=('openobex' 'glib2' 'libical')
|
|
conflicts=('obex-data-server')
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}/src"
|
|
install -m755 -d "${pkgdir}/usr/lib/obexd"
|
|
install -m755 -d "${pkgdir}/usr/share/dbus-1/services"
|
|
install -m755 obexd "${pkgdir}/usr/lib/obexd/"
|
|
install -m644 obexd.service "${pkgdir}/usr/share/dbus-1/services/"
|
|
}
|