summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f722144d539e74e0f4b873a54a7739bc7226c1da (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
# shellcheck disable=SC2164

# Maintainer: Cezary Drożak <cezary at drozak.net>
# Contributor: Zephyr
# Contributor: vitamin1980 <vitamin.novgorod @ yandex.ru>

# shellcheck disable=SC2034
_gitname="oxygen-gtk"
pkgname=oxygen-gtk3-git
pkgver=1.4.1.r12.g705b755f
pkgrel=1
pkgdesc="Port of the default KDE widget theme (Oxygen) to GTK3"
arch=('i686' 'x86_64')
url="https://invent.kde.org/plasma/oxygen-gtk"
license=('LGPL')
depends=('gtk3' 'dbus-glib')
makedepends=('git' 'cmake')
conflicts=('oxygen-gtk3')
provides=('oxygen-gtk3')
options=('!strip')
source=("git+https://invent.kde.org/plasma/$_gitname.git#branch=gtk3")
md5sums=('SKIP')

pkgver() {
	cd "$_gitname"

	git describe --long | sed 's/vgtk3-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$_gitname"

	cmake \
		-B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release

	cmake --build build
}

package() {
	cd "$_gitname"

	# shellcheck disable=SC2154
	DESTDIR="$pkgdir" cmake --install build
}