blob: 9414521d5ed46502314568f8457e0e7763df2ae8 (
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
|
# Maintainer: Max Christian Pohle <webmaster@coderonline.de>
pkgname=base16-vtrgb
pkgver=2022_12_29
pkgrel=2
pkgdesc="base16 color schemes available for the linux console (vt, tty)"
arch=('any')
url="https://github.com/coderonline/base16-vtrgb"
license=('MIT')
depends=(
'systemd'
'kbd'
'mkinitcpio'
)
backup=('etc/vtrgb')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/coderonline/base16-vtrgb/archive/refs/tags/${pkgver//_/-}.tar.gz")
sha256sums=('cd4b023b5b6d3ce302101393d198e5edf6c063c24f8e8c7efd05f91ce828cdc9')
install='base16-vtrgb.install'
package() {
VERSION=${pkgver//_/-}
cd ..
mkdir -p pkg/${pkgname}/usr/share/kbd/
mkdir -p pkg/${pkgname}/usr/lib/initcpio/hooks/
mkdir -p pkg/${pkgname}/usr/lib/initcpio/install/
mkdir -p pkg/${pkgname}/usr/lib/systemd/system/initrd.target.wants/
mkdir -p pkg/${pkgname}/etc/
cat /sys/module/vt/parameters/default_{red,grn,blu} > pkg/${pkgname}/etc/vtrgb
cp -a src/base16-vtrgb-${VERSION}/initcpio/hooks/setvtrgb pkg/${pkgname}/usr/lib/initcpio/hooks/
cp -a src/base16-vtrgb-${VERSION}/initcpio/install/setvtrgb pkg/${pkgname}/usr/lib/initcpio/install/
cp -a src/base16-vtrgb-${VERSION}/initcpio/install/sd-setvtrgb pkg/${pkgname}/usr/lib/initcpio/install/
cp -a src/base16-vtrgb-${VERSION}/setvtrgb.service pkg/${pkgname}/usr/lib/systemd/system/
ln -sf ../setvtrgb.service pkg/${pkgname}/usr/lib/systemd/system/initrd.target.wants/setvtrgb.service
cp -ar src/base16-vtrgb-${VERSION}/consolecolors pkg/${pkgname}/usr/share/kbd/
}
# vim: ft=bash
|