summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9fbe8d1d49ad7b5de33c287bafe0b96e23c822d3 (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
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>

pkgname=kpublictransport-git
_pkgname=kpublictransport
pkgver=r1324.4e58cf7
pkgrel=1
pkgdesc="Library to assist with accessing public transport timetables and other information"
arch=(x86_64)
url="https://kontact.kde.org"
license=(LGPL)
provides=($_pkgname)
conflicts=($_pkgname)
depends=(qt5-declarative)
makedepends=(git extra-cmake-modules)
source=("git+https://invent.kde.org/libraries/kpublictransport.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$_pkgname \
    -DBUILD_TESTING=OFF
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}