pmaports/modem/pd-mapper/APKBUILD
2020-05-23 18:10:02 +02:00

31 lines
1.1 KiB
Text

# 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"