diff options
author | gustawho | 2021-03-24 22:36:13 -0700 |
---|---|---|
committer | gustawho | 2021-03-24 22:36:13 -0700 |
commit | 8d22284bd67a67c27874752da632cfaed89afb23 (patch) | |
tree | d9cf06bd4944d70cd58953f2809589225f97231d | |
download | aur-8d22284bd67a67c27874752da632cfaed89afb23.tar.gz |
Package added
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4dffedd38322 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = smaragd-git + pkgdesc = KWin plugin to support Emerald themes in KDE + pkgver = v0.1.1.r39.g55e13e7 + pkgrel = 1 + url = https://invent.kde.org/plasma/smaragd + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = extra-cmake-modules + depends = kconfig + depends = kcoreaddons + depends = ki18n + depends = kwidgetsaddons + depends = kdecoration + depends = glib2 + depends = cairo + optdepends = emerald-themes: extra themes + provides = smaragd + conflicts = smaragd + source = git+https://invent.kde.org/plasma/smaragd.git + sha256sums = SKIP + +pkgname = smaragd-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ca93e08675a1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > + +pkgname=smaragd-git +pkgver=v0.1.1.r39.g55e13e7 +pkgrel=1 +pkgdesc="KWin plugin to support Emerald themes in KDE" +arch=(x86_64) +url="https://invent.kde.org/plasma/smaragd" +license=(GPL3) +depends=('kconfig' 'kcoreaddons' 'ki18n' 'kwidgetsaddons' 'kdecoration' 'glib2' 'cairo') +makedepends=('git' 'extra-cmake-modules') +optdepends=('emerald-themes: extra themes') +provides=('smaragd') +conflicts=('smaragd') +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)" + ) +} + +build() { + cmake -DCMAKE_INSTALL_PREFIX=/usr -B build -S "${pkgname%-git}" + make -C build +} + +package() { + make -C build DESTDIR="${pkgdir}" PREFIX=/usr install +} |