summaryrefslogtreecommitdiff
path: root/community/openobex
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-05 03:29:28 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-05 03:29:28 +0000
commitf3c8ccda77966505f7c3f0817fd8c78384411a5a (patch)
tree72788e136639ea1ca95da1ca298bde3f2ef0774c /community/openobex
parent94ed6c971085d22c2a544227879b672266b4af90 (diff)
Sun Jan 5 03:25:57 UTC 2014
Diffstat (limited to 'community/openobex')
-rw-r--r--community/openobex/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/openobex/PKGBUILD b/community/openobex/PKGBUILD
new file mode 100644
index 000000000..ba821ed39
--- /dev/null
+++ b/community/openobex/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 103373 2014-01-04 10:26:43Z andrea $
+# Maintainer:
+# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: damir <damir@archlinux.org>
+
+pkgname=openobex
+pkgver=1.7.1
+pkgrel=1
+pkgdesc="Implementation of the OBject EXchange (OBEX) protocol"
+url="http://dev.zuckschwerdt.org/openobex/"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL')
+depends=('libusbx' 'bluez-libs')
+makedepends=('cmake' 'libxslt')
+options=('staticlibs' '!makeflags')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}-Source.tar.gz)
+md5sums=('3181bfed9cb7db591605391068cb0085')
+
+prepare() {
+ sed -i 's|MODE="660", GROUP="plugdev"|TAG+="uaccess"|' ${pkgname}-${pkgver}-Source/udev/openobex.rules.in
+}
+
+build() {
+ mkdir build
+ cd build
+ cmake ../${pkgname}-${pkgver}-Source \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DCMAKE_INSTALL_SBINDIR=/usr/bin
+ make all openobex-apps
+}
+
+package() {
+ cd build
+ make DESTDIR="${pkgdir}" install
+ cp ../${pkgname}-${pkgver}-Source/apps/lib/*.h "${pkgdir}/usr/include/openobex/"
+ install -m644 apps/lib/libopenobex-apps-common.a "${pkgdir}/usr/lib/libopenobex-apps-common.a"
+}