summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5949093c8f01a46744d79a339499d5df26463159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com >

pkgname=lightlyshaders-git
pkgver=3.0.0.r1.g42ba6df
pkgrel=2
pkgdesc="Round corners and outline effect for KWin"
arch=(x86_64)
url="https://github.com/a-parhom/LightlyShaders"
license=('GPL-2.0-or-later')
depends=('kconfig' 'kconfigwidgets' 'kcoreaddons' 'kcrash' 'kglobalaccel' 'kguiaddons' 'kcmutils'
         'ki18n' 'kio' 'kservice' 'knotifications' 'kwidgetsaddons' 'kwindowsystem')
makedepends=('git' 'extra-cmake-modules')
provides=('lightlyshaders')
conflicts=('lightlyshaders')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd LightlyShaders
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLIB_INSTALL_DIR=lib -B build -S LightlyShaders
  cmake --build build --config RelWithDebInfo
}

package() {
  DESTDIR="${pkgdir}" cmake --install build --config RelWithDebInfo
}