From 8bcf43232650d7b2a334d17bbfd5f3c104469218 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Tue, 26 Jan 2021 19:31:58 +0100 Subject: [PATCH] main/ofono-phonesim: new aport (MR 1900) --- main/ofono-phonesim/APKBUILD | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 main/ofono-phonesim/APKBUILD diff --git a/main/ofono-phonesim/APKBUILD b/main/ofono-phonesim/APKBUILD new file mode 100644 index 000000000..dd87ecb87 --- /dev/null +++ b/main/ofono-phonesim/APKBUILD @@ -0,0 +1,39 @@ +# 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"