summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4dca4aa6c4b1a0652bbff2da304ed7817883d59f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Vadim Yanitskiy <fixeria@osmocom.org>

pkgname=osmo-qcdiag-git
pkgver=r102.5b01f0b
pkgrel=2
pkgdesc="Osmocom tool for Qualcomm DIAG"
arch=('x86_64' 'i686')
url="https://osmocom.org/projects/osmo-qcdiag"
license=('GPL-2.0-or-later')
depends=('libosmocore.so' 'libqmi')
makedepends=('git')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}=${pkgver}")
source=("git+https://gerrit.osmocom.org/osmo-qcdiag.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd "$srcdir/${pkgname%-git}"
  make -C src
}

package() {
  cd "$srcdir/${pkgname%-git}"
  mkdir -p "${pkgdir}/usr/bin"
  install -m 755 src/osmo-qcdiag-log "${pkgdir}/usr/bin/osmo-qcdiag-log"
}