summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60869954ef0e0df933b954801093ce911222ff9e (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=r729.5c6f655
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://anongit.kde.org/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
}