summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2eed918e7f2b83b739e5303ca2b2e9e6288a5fe6 (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
# Maintainer: Yury Kurlykov <kurlykster@mail.ru>
pkgname='bootsplash-theme-bgrt'
pkgver=0.1
pkgrel=1
pkgdesc="BGRT bootsplash theme"
url="https://github.com/t1meshift/bootsplash-theme-bgrt"
arch=('x86_64')
license=('GPL')

optdepends=('bootsplash-systemd: for bootsplash functionality')
makedepends=('imagemagick')
options=('!libtool' '!emptydirs')

source=('bootsplash-packer'
	'bootsplash-bgrt.sh'
	'bootsplash-bgrt.initcpio_install'
	'spinner.gif')

sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

prepare() {
  echo "Checking for BGRT..."
  if [ ! -f "/sys/firmware/acpi/bgrt/version" ]
  then
    echo "BGRT not found, aborting..."
    exit 1
  fi
}

build() {
  cd "$srcdir"
  sh ./bootsplash-bgrt.sh
}

package() {
  cd "$srcdir"
  install -Dm644 "$srcdir/bootsplash-bgrt" "$pkgdir/usr/lib/firmware/bootsplash-themes/bgrt/bootsplash"
  install -Dm644 "$srcdir/bootsplash-bgrt.initcpio_install" "$pkgdir/usr/lib/initcpio/install/bootsplash-bgrt"
}