summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9ae1383b24b2008b49e11efb65edbe2689fa052 (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
_pkgname=apple-mac-plymouth
pkgname="${_pkgname}-git"
pkgver=1.0.r16.da00ab1
pkgrel=1
pkgdesc='Plymouth theme for someone who wants to create a complete apple theme.'
arch=('any')
url="https://github.com/Msouza91/${_pkgname}.git"
license=('GPL3.0')
depends=('plymouth')
makedepends=('git')
source=("git+$url")
sha256sums=('SKIP')

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

package() {
  cd "${_pkgname}"

  _themedir="$pkgdir/usr/share/plymouth/themes/apple-mac-plymouth"

  for N in *.png *.svg preview.sh apple-mac-plymouth.plymouth apple-mac-plymouth.script; do
    install -Dm644 $N "${_themedir}/$N"
  done

  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}