From ba26b27673922d9ff7eac2e55205327e646ec1dc Mon Sep 17 00:00:00 2001 From: Dolphin von Chips Date: Thu, 19 Mar 2020 20:07:15 +0500 Subject: [PATCH] modem/pd-mapper: new aport (MR 1080) --- modem/pd-mapper/APKBUILD | 31 +++++++++++++++++++++++++++++++ modem/pd-mapper/pd-mapper.initd | 9 +++++++++ 2 files changed, 40 insertions(+) create mode 100644 modem/pd-mapper/APKBUILD create mode 100644 modem/pd-mapper/pd-mapper.initd diff --git a/modem/pd-mapper/APKBUILD b/modem/pd-mapper/APKBUILD new file mode 100644 index 000000000..69674b52c --- /dev/null +++ b/modem/pd-mapper/APKBUILD @@ -0,0 +1,31 @@ +# Maintainer: Dolphin von Chips +pkgname=pd-mapper +pkgver=0_git20200314 +pkgrel=0 +_commit="ab5074fdd5e4130578aa4c99b00d44527a79636f" +pkgdesc="Qualcomm PD mapper" +url="https://github.com/andersson/pd-mapper" +arch="all" +license="BSD-3-Clause" +makedepends="qrtr-dev" +source="https://github.com/andersson/pd-mapper/archive/$_commit/pd-mapper-$_commit.tar.gz + pd-mapper.initd + " +subpackages="$pkgname-doc $pkgname-openrc" +builddir="$srcdir/pd-mapper-$_commit" +options="!check" # No test suite + +build() { + make prefix="/usr" +} + +package() { + make prefix="/usr" DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/lib/systemd + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING + install -Dm755 "$srcdir"/pd-mapper.initd "$pkgdir"/etc/init.d/pd-mapper +} + +sha512sums="5b40b5a4d8117d4e59a9a3646a9af4d3128e2c1321d03d6993b1aa7e40265f2cdec90fb643200c652f5b10f7903272f1bca9445874a7092c339b5b70d71811d0 pd-mapper-ab5074fdd5e4130578aa4c99b00d44527a79636f.tar.gz +84956dbad2402b5942f894dbf8101ea67d114b89e4e42923792faac6c8dac5c9cc0d3001d1aef6406b4e9098cca2696ce64fdc8cd8f7b6d83655c922c0b5e88f pd-mapper.initd" diff --git a/modem/pd-mapper/pd-mapper.initd b/modem/pd-mapper/pd-mapper.initd new file mode 100644 index 000000000..bb41c6c7c --- /dev/null +++ b/modem/pd-mapper/pd-mapper.initd @@ -0,0 +1,9 @@ +#!/sbin/openrc-run +supervisor=supervise-daemon +name="pd-mapper" +description="Qualcomm PD mapper service" +command="/usr/bin/pd-mapper" + +depend() { + need qrtr-ns +}