summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55f256a59a092dd3bb9035bf74bad3aacd41804d (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
# Maintainer: fiskhest <johan+bspi at radivoj dot se>
# Maintainer: Adam Rutkowski <hq at mtod dot org>

_pkgname=bspi
pkgname=${_pkgname}-git
pkgver=r15.ed6d090
pkgrel=1
pkgdesc='Icons for bspwm, sort of'
arch=('any')
url="https://github.com/fiskhest/aur-${pkgname}"
license=('BSD')
install=${pkgname}.install
depends=('bspwm' 'xorg-xprop' 'ttf-font-awesome' 'python')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+https://github.com/aerosol/${_pkgname}.git")
md5sums=('SKIP')

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

package() {
    cd "${_pkgname}"
    install -D -m 755 -t "${pkgdir}/usr/bin" bspi.py bspi_listen
    install -D -m 644 bspi.ini "${pkgdir}/usr/share/doc/${_pkgname}/bspi.ini"
    install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}