diff options
author | gustawho | 2020-09-08 13:55:50 -0600 |
---|---|---|
committer | gustawho | 2020-09-08 13:55:50 -0600 |
commit | 793e0eb41e57f519f6bb3814dbbe5f02ec9e670f (patch) | |
tree | 0f078880eea91a3cddd9d057623e2a3a9e868eea | |
download | aur-793e0eb41e57f519f6bb3814dbbe5f02ec9e670f.tar.gz |
Package added
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cff197d72c6d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = kalk-git + pkgdesc = Kalk is a powerful cross-platfrom calculator application built with the Kirigami framework + pkgver = V0.1.r16.g620af81 + pkgrel = 1 + url = https://invent.kde.org/plasma-mobile/kalk + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = qt5-tools + makedepends = extra-cmake-modules + depends = ki18n + depends = kconfig + depends = kcoreaddons + depends = knotifications + depends = kirigami2 + depends = kunitconversion + depends = kdbusaddons + depends = plasma-framework + provides = kweather + conflicts = kweather + source = git+https://invent.kde.org/plasma-mobile/kalk.git + sha256sums = SKIP + +pkgname = kalk-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..47bced9fb582 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > + +pkgname=kalk-git +pkgver=V0.1.r16.g620af81 +pkgrel=1 +pkgdesc="Kalk is a powerful cross-platfrom calculator application built with the Kirigami framework" +arch=('x86_64') +url="https://invent.kde.org/plasma-mobile/kalk" +license=('GPL3') +depends=('ki18n' 'kconfig' 'kcoreaddons' 'knotifications' 'kirigami2' 'kunitconversion' 'kdbusaddons' 'plasma-framework') +makedepends=('git' 'qt5-tools' 'extra-cmake-modules') +provides=('kweather') +conflicts=('kweather') +source=("git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname%-git}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd "${pkgname%-git}" + install -d build +} + +build() { + cd "${pkgname%-git}/build" + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "${pkgname%-git}/build" + make DESTDIR="$pkgdir" install +} |