summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0620c6909a20e74cb55bc5a18ef462e35782272d (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
# Maintainer: Andrey Alekseev <andrey.android7890@gmail.com>

pkgname=('bootsplash-theme-manjaro-glitch-git')
pkgver=1.0.r0.g320c1af
pkgrel=2
arch=('x86_64')
pkgdesc="Simple Manjaro Bootsplash with cool glitch effect"
url="https://github.com/ANDRoid7890/bootsplash-theme-manjaro-glitch"
license=('GPL')
depends=()
optdepends=('bootsplash-systemd: for bootsplash functionality')
makedepends=('imagemagick' 'git')
source=('git+https://github.com/ANDRoid7890/bootsplash-theme-manjaro-glitch.git')
sha256sums=('SKIP')

pkgver() {
  cd "bootsplash-theme-manjaro-glitch"
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
} 

build() {
  cd "$srcdir"/"bootsplash-theme-manjaro-glitch"
  sh ./bootsplash-manjaro-glitch.sh
}

package() {
  pkgdesc="Simple Manjaro Bootsplash with cool glitch effect"
  cd "$srcdir"

  install -Dm644 "$srcdir/bootsplash-theme-manjaro-glitch/bootsplash-manjaro-glitch" "$pkgdir/usr/lib/firmware/bootsplash-themes/manjaro-glitch/bootsplash"
  install -Dm644 "$srcdir/bootsplash-theme-manjaro-glitch/bootsplash-manjaro-glitch.initcpio_install" "$pkgdir/usr/lib/initcpio/install/bootsplash-manjaro-glitch"
}