blob: d06b628f26895b167b36550446b1e86b711562c0 (
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
|
# Maintainer: Aurélien DESBRIÈRES <aurelien@hackers.camp>
pkgname=mkinitcpio-paralogo
pkgver=0.0.1
pkgrel=1
pkgdesc="Add colored Parabola Linux ASCII art logo to early boot process"
arch=('any')
url="https://github.com/XL04D/mkinitcpio-paralogo"
depends=('mkinitcpio')
makedepends=('git')
license=('GPL')
install=mkinitcpio-paralogo.install
source=('git://github.com/XL04D/mkinitcpio-paralogo.git')
backup=('etc/paralogo.conf')
pkgver() {
cd mkinitcpio-paralogo/
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
else
echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
fi
}
package() {
cd mkinitcpio-paralogo/
# install install script and unit file
install -D -m0644 install/paralogo ${pkgdir}/usr/lib/initcpio/install/paralogo
install -D -m0644 systemd/paralogo.service ${pkgdir}/usr/lib/systemd/system/paralogo.service
# install hook for plain old script based initramfs
install -D -m0755 hook/paralogo ${pkgdir}/usr/lib/initcpio/hooks/paralogo
# install config
install -D -m0644 etc/paralogo.conf ${pkgdir}/etc/paralogo.conf
# install logos
install -D -m0644 share/paralogo ${pkgdir}/usr/share/paralogo/paralogo
install -D -m0644 share/paralogo2 ${pkgdir}/usr/share/paralogo/paralogo2
install -D -m0644 share/paralogo2 ${pkgdir}/usr/share/paralogo/paralogo3
}
sha256sums=('SKIP')
|