summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00612812e725e5ae380ab6909ae863e3d064c109 (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: Nazar Vinnichuk <nazar.vinnichuk at tutanota dot com>
pkgname=bspwm-undo-git
_pkgname=${pkgname%-git}
pkgver=r22.972431a
pkgrel=1
pkgdesc="Undoable versions of some bspc commands."
url="http://github.com/Kharacternyk/${_pkgname}"
arch=('any')
license=('GPL3')
depends=('bspwm')
makedepends=('git')
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/Kharacternyk/${_pkgname}.git#branch=master")
sha256sums=(SKIP)

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

package() {
    install -Dm755 \
    "${srcdir}/${_pkgname}/ubspc.sh" \
    "${pkgdir}/usr/bin/ubspc"
}