summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd39019597fe28182807ecfe1d329dbb6b5cff87 (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
39
# Maintainer: Donald Carr<sirspudd@gmail.com>

#set -o errexit
#set -o xtrace

pkgname=libconnman-qt-git
pkgver=20210114.f5b49d8
pkgrel=1
pkgdesc='Qt Quick wrappers for connman'
arch=('x86_64')
url='https://github.com/sailfishos/libconnman-qt'
license=('GPL')
provides=('libconnman-qt')
conflicts=('libconnman-qt')
depends=('qt5-tools' 'qt5-base' 'qt5-declarative' 'connman')
makedepends=('qt5-base')
source=("git+https://github.com/sailfishos/libconnman-qt.git")
sha256sums=('SKIP')

pkgver () {
  cd ${srcdir}/libconnman-qt
  echo "$(git log -1 --format="%cd" --date=short | tr -d '-').$(git log -1 --format="%h")"
}

prepare() {
    cd ${srcdir}/libconnman-qt
    patch -p1 < ${startdir}/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch
}

build() {
    cd ${srcdir}/libconnman-qt
    qmake
    make
}

package() {
    cd ${srcdir}/libconnman-qt
    INSTALL_ROOT="$pkgdir" make install
}