summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Sterz2020-04-10 22:47:23 +0200
committerChristoph Sterz2020-04-10 22:47:23 +0200
commit0505f15811f14187957cfa6b9c100c4f189b3ecb (patch)
treeb4d20777028fe6a279ce17ec96c0bf0d4450f50c
downloadaur-0505f15811f14187957cfa6b9c100c4f189b3ecb.tar.gz
KDDockwidgets git latest
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD36
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..757cc3dab50
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = kddockwidgets-git
+ pkgdesc = KDAB's Dock Widget Framework for Qt
+ pkgver = r1090.899ca6a
+ pkgrel = 1
+ url = https://www.kdab.com/kddockwidgets/
+ arch = x86_64
+ license = GPL2
+ license = custom:KDAB commercial license
+ makedepends = cmake
+ makedepends = ninja
+ makedepends = qt5-tools
+ depends = qt5-base
+ source = kddockwidgets-git::git+https://github.com/KDAB/KDDockWidgets.git
+ sha256sums = SKIP
+
+pkgname = kddockwidgets-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f8f61be473d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Christoph Sterz <christoph.sterz@kdab.com>
+pkgname=kddockwidgets-git
+pkgver=r1090.899ca6a
+pkgrel=1
+arch=('x86_64')
+pkgdesc="KDAB's Dock Widget Framework for Qt"
+license=("GPL2" "custom:KDAB commercial license")
+depends=('qt5-base')
+makedepends=('cmake' 'ninja' 'qt5-tools')
+url="https://www.kdab.com/kddockwidgets/"
+source=("${pkgname}::git+https://github.com/KDAB/KDDockWidgets.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 \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -G Ninja \
+ "../${pkgname}"
+ ninja
+}
+
+package() {
+ cd build
+ DESTDIR="${pkgdir}" ninja install
+}