summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 750cb17daa6587083f66727b53675a90ece8aff6 (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=r81.9d5f298
pkgrel=2
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=('GPL')
depends=('xmonad')
makedepends=('git')
conflicts=('pacman-hooks-desbma-git')
source=("git+https://github.com/desbma/${_gitname}")
md5sums=('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" 
}