diff options
author | Kyle De'Vir | 2020-05-26 18:38:27 +1000 |
---|---|---|
committer | Kyle De'Vir | 2020-05-26 18:38:27 +1000 |
commit | 2e3eea61a946efda5fdb63028435912ad9984369 (patch) | |
tree | 30d99ca5e4d1c83b2bc6e2fb1b77d4aa51c11ed3 | |
download | aur-2e3eea61a946efda5fdb63028435912ad9984369.tar.gz |
Initial
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 59 |
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..89f8b8295ba3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = disman-git + pkgdesc = Qt/C++ display management library by KWinFT project ~ forked from KDE libkscreen + pkgver = r1538.0c6de05 + pkgrel = 1 + url = https://gitlab.com/kwinft/disman + arch = i686 + arch = x86_64 + license = LGPL + makedepends = extra-cmake-modules + makedepends = git + depends = qt5-x11extras + depends = libxrandr + depends = kwayland + depends = wrapland + provides = disman + conflicts = disman + source = git+https://gitlab.com/kwinft/disman.git + md5sums = SKIP + +pkgname = disman-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d93dd5bf6816 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Christoph Haag <christoph.haag@collabora.com> +# Author: Matthias Blaicher <matthias at blaicher dot com> + +pkgname=disman-git +pkgver=r1538.0c6de05 +pkgrel=1 +pkgdesc='Qt/C++ display management library by KWinFT project ~ forked from KDE libkscreen' +arch=( + i686 + x86_64 +) +url='https://gitlab.com/kwinft/disman' +license=(LGPL) +depends=( + qt5-x11extras + libxrandr + kwayland + wrapland +) +makedepends=( + extra-cmake-modules + git +) +provides=(disman) +conflicts=(disman) +source=('git+https://gitlab.com/kwinft/disman.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/disman" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + mkdir -p "$srcdir/build" +} + +build() { + cd "$srcdir/build" + + cmake \ + "$srcdir/disman" \ + -G Ninja \ + -D CMAKE_BUILD_TYPE="Release" \ + -D CMAKE_INSTALL_PREFIX="/usr" \ + -D KDE_INSTALL_LIBDIR="lib" \ + -D KDE_INSTALL_LIBEXECDIR="lib" \ + -D KDE_INSTALL_USE_QT_SYS_PATHS="ON" \ + -D BUILD_TESTING="OFF" + + ninja +} + +package() { + cd "$srcdir/build" + + DESTDIR="$pkgdir" ninja install +} |