summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95a9531706656da68c37aa5a0b1dbcfd4b3729a9 (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
# Maintainer: Kyle Sferrazza <kyle.sferrazza@gmail.com>

_themename=arch-solarized
_pkgname="plymouth-theme-${_themename}"
pkgname="${_pkgname}-git"
pkgver=r16.af2e98c
pkgrel=1
pkgdesc='A Plymouth theme with a solarized-dark arch linux logo.'
arch=('any')
url="https://gitlab.com/kylesferrazza/${_pkgname}/"
depends=('plymouth')
makedepends=('git')
source=($_pkgname::"git+https://gitlab.com/kylesferrazza/${_pkgname}.git")
sha256sums=('SKIP')

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

package() {
  cd $_pkgname

  _themedir="$pkgdir/usr/share/plymouth/themes/${_themename}"

  install -Dm644 img/bg.png "${_themedir}/img/bg.png"
  install -Dm644 "${_themename}.plymouth" "${_themedir}/${_themename}.plymouth"
  install -Dm644 "${_themename}.script" "${_themedir}/${_themename}.script"
  install -Dm644 img/box.png "${_themedir}/img/box.png"
  install -Dm644 img/bullet.png "${_themedir}/img/bullet.png"
  install -Dm644 img/entry.png "${_themedir}/img/entry.png"
  install -Dm644 img/lock.png "${_themedir}/img/lock.png"
}