summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e3d377d5b46d6afaa10d1d7abc6eae244e8309f (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
32
33
34
35
36
37
38
# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com >

pkgname=libqofono-git
pkgver=0.1.r242.gb5f738b
pkgrel=1
arch=('x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
pkgdesc="A library for accessing the ofono daemon, and a declarative plugin for it."
url="https://git.sailfishos.org/mer-core/libqofono"
license=('LGPLv2.1')
depends=('qt5-declarative' 'qt5-xmlpatterns')
makedepends=('qt5-tools')
conflicts=('libqofono' 'qofono')
provides=('libqofono' 'qofono')
source=("git+${url}.git")
sha512sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  ( set -o pipefail
    git describe --long --tags --first-parent --match 'v[0-9][0-9.][0-9.]*' | \
      sed 's=^v==;s=^\([0-9][0-9.]*\)-\([a-zA-Z]\+\)=\1\2=;s=\([0-9]\+-g\)=r\1=;s=-=.=g'
  )
}

prepare() {
  mkdir -p "${pkgname%-git}"/build
}

build() {
  cd "${pkgname%-git}"/build
  qmake ../libqofono.pro
  make
}

package() {
  cd "${pkgname%-git}"/build
  INSTALL_ROOT="${pkgdir}" make install
}