# Maintainer: Natanael Copa pkgname=openobex pkgver=1.7.2 pkgrel=5 pkgdesc="Implementation of the OBject EXchange (OBEX) protocol" url="http://dev.zuckschwerdt.org/openobex/" arch="all" license="GPL-2.0-or-later AND LGPL-2.1-or-later" depends_dev="libusb-dev" makedepends="$depends_dev bluez-dev cmake eudev-dev libxml2-utils docbook-xsl samurai" subpackages="$pkgname-dev $pkgname-doc $pkgname-apps" source="https://downloads.sourceforge.net/project/openobex/openobex/$pkgver/openobex-$pkgver-Source.tar.gz" builddir="$srcdir"/openobex-$pkgver-Source build() { cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_SKIP_RPATH=ON cmake --build build --target all openobex-apps } package() { DESTDIR="$pkgdir" cmake --install build } apps() { pkgdesc="Applications for using OBEX" amove usr/bin } sha512sums=" 22f1b0d99e7186da9fa12b510ef9dbb6f7d76777d58b235ab2f627703d07b6f6b0488cdc9c6d8c0ab7bc86d6d19117c55fff9273fed02736c0210f9b1788bf4d openobex-1.7.2-Source.tar.gz "