# Contributor: Bhushan Shah <bshah@kde.org>
# Maintainer: Bhushan Shah <bshah@kde.org>
pkgname=telepathy-ofono
pkgver=0_git20190805
pkgrel=2
_commit="817b61d214ad2be4f74d3facb4c090ac751faf5b"
pkgdesc="Telepathy oFono connection manager"
url="https://github.com/TelepathyIM/telepathy-ofono"
arch="all"
license="LGPL-2.1-or-later"
depends="ofono"
makedepends="cmake qt5-qtbase-dev libphonenumber-dev telepathy-qt-dev sqlite-dev telepathy-mission-control-dev libofono-qt-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/TelepathyIM/telepathy-ofono/archive/$_commit.tar.gz"
options="!check" # no tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DOFONO_ON_RING=ON
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="946fa6f2af52f192fb4ad7bb130d28c9e4c698a10a1982a1ac4be69d4043621a5edd111a860d84bd7666778b388653167d28bae87e9e13a14c1fe5c1ff0685ad  telepathy-ofono-817b61d214ad2be4f74d3facb4c090ac751faf5b.tar.gz"
