diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..049147d3c93b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Yury Kurlykov <kurlykster@mail.ru> +pkgname='bootsplash-theme-bgrt' +pkgver=0.1 +pkgrel=1 +pkgdesc="BGRT bootsplash theme" +url="https://lists.freedesktop.org/archives/dri-devel/2017-December/160242.html" +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" +} |