summaryrefslogtreecommitdiff
path: root/pcr/mkinitcpio-paralogo/PKGBUILD
blob: f3d03f7193dbcb0bc78a1de4f07541b7fd4b3fcd (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
43
44
45
46
47
48
49
# Maintainer: Aurélien DESBRIÈRES <aurelien@hackers.camp>

pkgname=mkinitcpio-paralogo
pkgver=0.0.2
pkgrel=1
pkgdesc="Add colored Parabola Linux ASCII art logo to early boot process"
arch=('any')
url=https://git.parabola.nu/mkinitcpio-paralogo.git/
license=('GPL')

depends=('mkinitcpio')
makedepends=('git')
backup=('etc/paralogo.conf')
install=mkinitcpio-paralogo.install
source=(git+https://git.parabola.nu/mkinitcpio-paralogo.git#tag=${pkgver})

sha256sums=('SKIP')


package()
{
  cd "${srcdir}"/mkinitcpio-paralogo/

  # install install script and unit file
  install -m0755 -d                       "${pkgdir}"/usr/lib/initcpio/install/
  install -m0644 install/paralogo         "${pkgdir}"/usr/lib/initcpio/install/
  install -m0755 -d                       "${pkgdir}"/usr/lib/systemd/system/
  install -m0644 systemd/paralogo.service "${pkgdir}"/usr/lib/systemd/system/

  # install hook for plain old script based initramfs
  install -m0755 -d                       "${pkgdir}"/usr/lib/initcpio/hooks/
  install -m0755 hook/paralogo            "${pkgdir}"/usr/lib/initcpio/hooks/

  # install config
  install -m0755 -d                       "${pkgdir}"/etc/
  install -m0644 etc/paralogo.conf        "${pkgdir}"/etc/

  # install logos
  install -m0755 -d                       "${pkgdir}"/usr/share/paralogo/
  install -m0644 share/paralogo           "${pkgdir}"/usr/share/paralogo/
  install -m0644 share/paralogo2          "${pkgdir}"/usr/share/paralogo/
  install -m0644 share/paralogo3          "${pkgdir}"/usr/share/paralogo/
  install -m0644 share/paralogo4          "${pkgdir}"/usr/share/paralogo/
  install -m0644 share/paralogo5          "${pkgdir}"/usr/share/paralogo/

  # install README
  install -m0755 -d                       "${pkgdir}"/usr/share/doc/paralogo/
  install -m0644 README.md                "${pkgdir}"/usr/share/doc/paralogo/
}