diff options
author | Vlad Zahorodnii | 2022-07-03 13:41:19 +0300 |
---|---|---|
committer | Vlad Zahorodnii | 2022-07-03 13:41:19 +0300 |
commit | f09f108c4dde62d7078b96743f56ccb48de33e23 (patch) | |
tree | 019e10550b7bab606442aaa429ce94298eebfe31 | |
download | aur-f09f108c4dde62d7078b96743f56ccb48de33e23.tar.gz |
initial
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5cf0046b700d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = kwin-effects-cube-git + pkgdesc = Desktop cube effect for KWin + pkgver = 0.1.0.r0.ed80bd9 + pkgrel = 1 + url = https://github.com/zzag/kwin-effects-cube + arch = x86_64 + license = GPL3 + makedepends = extra-cmake-modules + depends = kwin>=5.25.0 + source = kwin-effects-cube-git::git+https://github.com/zzag/kwin-effects-cube.git + sha256sums = SKIP + +pkgname = kwin-effects-cube-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a455dfcf411d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Vlad Zahorodnii <contact@vladzahorodnii.com> + +pkgname=kwin-effects-cube-git +pkgver=0.1.0.r0.ed80bd9 +pkgrel=1 +pkgdesc='Desktop cube effect for KWin' +arch=('x86_64') +url='https://github.com/zzag/kwin-effects-cube' +license=('GPL3') +depends=('kwin>=5.25.0') +makedepends=(extra-cmake-modules) +source=("${pkgname}::git+https://github.com/zzag/kwin-effects-cube.git") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname}" + git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' +} + +build() { + cmake -B build -S "${pkgname}" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build +} + +package() { + DESTDIR="${pkgdir}" cmake --build build --target install +} |