summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13ce090279372653688b835d30e1f2efb50b857a (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
# Maintainer: David Phillips <dbphillipsnz gmail>

_theme=petrichor
_pkgname=lightdm-webkit-theme-${_theme}
pkgname=${_pkgname}-git
pkgver=r9.51d13af
pkgrel=2
pkgdesc="Simple and tidy theme for LightDM's webkit2 greeter"
arch=('any')
url="https://sighup.nz/programming/petrichor/"
license=("BSD")
depends=('lightdm' 'lightdm-webkit-greeter')
source=("${pkgname}::git+https://github.com/phillid/${_theme}.git")
md5sums=('SKIP')

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

package () {
	cd "${srcdir}/${pkgname}"

	mkdir -p "${pkgdir}/usr/share/lightdm-webkit/themes/${_theme}"
	for f in index.{html,theme} petrichor.{js,css} bg.jpg iec5009.svg drop-down.svg ; do
		cp "${f}" "${pkgdir}/usr/share/lightdm-webkit/themes/${_theme}/"
	done
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}