diff options
author | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-17 15:20:46 +0200 |
---|---|---|
committer | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-17 15:20:46 +0200 |
commit | fe510040c0bd4b2f6298bf1b049397561bb4fc1d (patch) | |
tree | 8afd9b3ebdd7e3042e286c94580ce79d6bb5ea40 /pcr/mkinitcpio-paralogo/PKGBUILD | |
parent | ed887ea7ccdeab875470d31a7f7fe4884102a439 (diff) | |
download | abslibre-fe510040c0bd4b2f6298bf1b049397561bb4fc1d.tar.gz abslibre-fe510040c0bd4b2f6298bf1b049397561bb4fc1d.tar.bz2 abslibre-fe510040c0bd4b2f6298bf1b049397561bb4fc1d.zip |
mkinitcpio-paralogo logo during boot instance
Diffstat (limited to 'pcr/mkinitcpio-paralogo/PKGBUILD')
-rw-r--r-- | pcr/mkinitcpio-paralogo/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/mkinitcpio-paralogo/PKGBUILD b/pcr/mkinitcpio-paralogo/PKGBUILD new file mode 100644 index 000000000..6a23d56cb --- /dev/null +++ b/pcr/mkinitcpio-paralogo/PKGBUILD @@ -0,0 +1,44 @@ +# 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 +} + +sha256sums=('SKIP') |