blob: 8b22de779617e5a736bbcfef1eac4c5d1817aa25 (
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
40
41
42
43
44
45
46
|
# Maintainer: Tim Schneeberger <contact at timschneeberger dot me>
_reponame=onboard-plasmoid
pkgname=onboard-plasmoid-git
pkgver=6.8efb7be
pkgrel=1
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
pkgdesc='A KDE plasmoid that displays live local telemetry data about the train you are sitting in'
license=('GPL')
depends=('qt5-base' 'plasma-workspace' 'networkmanager-qt5')
makedepends=('cmake' 'ninja' 'qt5-tools' 'appstream' 'plasma-framework5' 'extra-cmake-modules' 'c++utilities' 'qtutilities')
url="https://github.com/ThePBone/${_reponame}"
source=("git+https://github.com/ThePBone/${_reponame}.git"
"git+https://github.com/ThePBone/qtpromise.git")
sha256sums=('SKIP' 'SKIP')
prepare() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
git submodule init
git config submodule.libs/qtpromise.url "$srcdir/qtpromise"
git -c protocol.file.allow=always submodule update
}
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
cmake \
-G Ninja \
-DCMAKE_BUILD_TYPE:STRING='Release' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
.
ninja
}
pkgver() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
DESTDIR="${pkgdir}" ninja install
}
|