diff options
Diffstat (limited to 'pcr/mkinitcpio-paralogo/PKGBUILD')
-rw-r--r-- | pcr/mkinitcpio-paralogo/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pcr/mkinitcpio-paralogo/PKGBUILD b/pcr/mkinitcpio-paralogo/PKGBUILD new file mode 100644 index 000000000..1c857c0f8 --- /dev/null +++ b/pcr/mkinitcpio-paralogo/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=mkinitcpio-paralogo +pkgver=0.r21.g650857a +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/paralogo3 ${pkgdir}/usr/share/paralogo/paralogo3 + +} + +sha256sums=('SKIP') +sha256sums=('SKIP') +sha256sums=('SKIP') +sha256sums=('SKIP') |