# Maintainer: Luca Weiss pkgname=ofono-phonesim pkgver=1.21_git20210125 pkgrel=0 _commit="a7c844d45b047b2dae5b0877816c346fce4c47b9" pkgdesc="Phone Simulator for modem testing" url="https://git.kernel.org/pub/scm/network/ofono/phonesim.git/" arch="all" license="GPL-2.0-or-later" makedepends="autoconf automake qt5-qtdeclarative-dev" source="https://git.kernel.org/pub/scm/network/ofono/phonesim.git/snapshot/phonesim-$_commit.tar.gz" builddir="$srcdir/phonesim-$_commit" options="!check" # No tests prepare() { default_prepare autoreconf -fi } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } package() { make DESTDIR="$pkgdir" install mv -v "$pkgdir"/usr/bin/phonesim "$pkgdir"/usr/bin/ofono-phonesim mv -v "$pkgdir"/usr/share/phonesim "$pkgdir"/usr/share/ofono-phonesim } sha512sums="25a4e2fbcfe72573bae21d8d98bbac4b95a2963aead386fc0663912fcd0d988dcb531d583c2c96359467e06763cc2210819ce13a9564725311cc842cb19c3e7b phonesim-a7c844d45b047b2dae5b0877816c346fce4c47b9.tar.gz"