summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50bf281c2d6676501b27771296fdaa77bce90c46 (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=20190409.f15eac1
pkgrel=1
pkgdesc='Qt Quick wrappers for connman'
arch=('x86_64')
url='https://git.merproject.org/mer-core/libconnman-qt'
license=('GPL')
provides=('libconnman-qt')
conflicts=('libconnman-qt')
depends=('qt5-tools' 'qt5-base' 'qt5-declarative' 'connman')
makedepends=('qt5-base')
source=("git+https://git.merproject.org/mer-core/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
}