summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43bc79a6dc9a19bee2ec00181b107fb44f569069 (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
# Maintainer: desbma
# shellcheck disable=SC2034,SC2148,SC2154,SC2164
pkgname=xmonad-recompile-pacman-hook-git
pkgver=r108.97400bf
pkgrel=1
pkgdesc='Pacman hook to recompile Xmonad config and avoid the infamous black screen'
arch=('any')
_gitname='pacman-hooks'
url="https://github.com/desbma/${_gitname}"
license=('GPL3')
depends=('xmonad')
makedepends=('git')
conflicts=('pacman-hooks-desbma-git')
source=("git+https://github.com/desbma/${_gitname}")
sha512sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_gitname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/${_gitname}"
    install -Dm 644 xmonad-recompile/xmonad-recompile.hook "${pkgdir}/usr/share/libalpm/hooks/zz40-xmonad-recompile.hook" 
}