summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc638a91698c83a173529dc0c187d36b8d4a15f6 (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
# Maintainer: Maxim Fomin <maxim@fomin.one>

_pkgname=dracut-colors
pkgname=${_pkgname}-git
pkgdesc="dracut hook to set VT console colors during early userspace"
license=('MIT')
url="https://github.com/mxfm/${_pkgname}"
pkgver=3.60cdf04
pkgrel=1

source=("$pkgname::git+https://github.com/mxfm/${_pkgname}")
md5sums=('SKIP')
depends=('dracut' 'setcolors-git')
makedepends=('git')
arch=('any')

pkgver() {
    cd "$srcdir/$pkgname"
    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
    cd "$srcdir/$pkgname"

    install -Dm 644 hooks/module-setup.sh "${pkgdir}/usr/lib/dracut/modules.d/00colors/module-setup.sh"
    install -Dm 644 hooks/setcolors.sh "${pkgdir}/usr/lib/dracut/modules.d/00colors/setcolors.sh"

    install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}