summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Weiss2020-03-27 18:43:18 +0100
committerLuca Weiss2020-03-27 18:43:18 +0100
commit0b94e6891a418fa765d3bd7c4a0b7b4a1629697c (patch)
treeea2d70740ceb28b13ca0283245f9343e30bbe5aa
downloadaur-kpublictransport-git.tar.gz
Initial upload: kpublictransport-git r729.5c6f655-1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD37
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..18f08de8f15
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = kpublictransport-git
+ pkgdesc = Library to assist with accessing public transport timetables and other information
+ pkgver = r729.5c6f655
+ pkgrel = 1
+ url = https://kontact.kde.org
+ arch = x86_64
+ license = LGPL
+ makedepends = git
+ makedepends = extra-cmake-modules
+ depends = qt5-declarative
+ provides = kpublictransport
+ conflicts = kpublictransport
+ source = git+https://anongit.kde.org/kpublictransport.git
+ sha256sums = SKIP
+
+pkgname = kpublictransport-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..60869954ef0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}