diff options
author | Tim Schneeberger | 2023-11-20 03:37:26 +0100 |
---|---|---|
committer | Tim Schneeberger | 2023-11-20 03:37:26 +0100 |
commit | eb3f3ff260d5d97e61db8af266d0bd95b18e7f86 (patch) | |
tree | 2d727907d8038be4c2addb7efccfb0df96f93595 | |
download | aur-eb3f3ff260d5d97e61db8af266d0bd95b18e7f86.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..77a3caa551a7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = onboard-plasmoid-git + pkgdesc = A KDE plasmoid that displays live local telemetry data about the train you are sitting in + pkgver = 5.26f1595 + pkgrel = 1 + url = https://github.com/ThePBone/onboard-plasmoid + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + arch = aarch64 + license = GPL + makedepends = cmake + makedepends = ninja + makedepends = qt5-tools + makedepends = plasma-framework5 + makedepends = extra-cmake-modules + makedepends = c++utilities + makedepends = qtutilities + depends = libqtutilities.so + depends = qt5-svg + depends = openssl + depends = qt5-base + depends = plasma-workspace + depends = desktop-file-utils + depends = xdg-utils + source = git+https://github.com/ThePBone/onboard-plasmoid.git + source = git+https://github.com/ThePBone/qtpromise.git + sha256sums = SKIP + sha256sums = SKIP + +pkgname = onboard-plasmoid-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f2b304f85779 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Tim Schneeberger <contact at timschneeberger dot me> + +_reponame=onboard-plasmoid +pkgname=onboard-plasmoid-git +pkgver=5.26f1595 +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=('libqtutilities.so' 'qt5-svg' 'openssl' 'qt5-base' 'plasma-workspace' + 'desktop-file-utils' 'xdg-utils') + +makedepends=('cmake' 'ninja' 'qt5-tools' '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 +} |