summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fb78a85101b06d5470b5df0f2f800ed19fccaab (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
# Maintainer: Shohei Maruyama<cheat.sc.linux@outlook.com>

pkgname=(otto-kde-git kvantum-theme-otto-git)
pkgver=r14.fd67d36
pkgrel=2
pkgdesc="Otto Theme for Kde Plasma"
arch=('any')
url="https://www.opencode.net/jomada/otto"
license=('GPL3')
depends=()
makedepends=('git')
conflicts=()
source=("git+${url}.git")
sha512sums=('SKIP')

pkgver() {
	cd otto
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package_otto-kde-git() {
	optdepends=(
		'konsole: For the Konsole color scheme'
		'kvantum-theme-otto-git: Otto theme for kvantum (recommended)'
	)

	cd otto
	install -d "${pkgdir}/usr/share"
	install -d "${pkgdir}/usr/share/plasma"
	install -d "${pkgdir}/usr/share/plasma/desktoptheme"

	cp -r look-and-feel "${pkgdir}/usr/share/plasma"
	cp -r Otto "${pkgdir}/usr/share/plasma/desktoptheme"
	cp -r color-schemes "${pkgdir}/usr/share"
	cp -r konsole "${pkgdir}/usr/share"
}

package_kvantum-theme-otto-git() {
	pkgdesc="Otto theme for kvantum"
	depends=(kvantum)

	cd otto
	install -d "${pkgdir}/usr/share"

	cp -r kvantum "${pkgdir}/usr/share/Kvantum"
}