modem/pd-mapper: new aport (MR 1080)
This commit is contained in:
parent
6bd3f0ead8
commit
ba26b27673
2 changed files with 40 additions and 0 deletions
31
modem/pd-mapper/APKBUILD
Normal file
31
modem/pd-mapper/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Maintainer: Dolphin von Chips <DoIphinChips@protonmail.com>
|
||||
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"
|
9
modem/pd-mapper/pd-mapper.initd
Normal file
9
modem/pd-mapper/pd-mapper.initd
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue