summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 568fb0c903eda451f420302881b6afe19dfa6a75 (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
#Maintainer: Sam Bazley <sambazley@fastmail.com>

module=constwidth

pkgname=blockbar-${module}-git
pkgver=20191017024640
pkgrel=1
pkgdesc="Module for blockbar that prevents the block's width from changing"
arch=("i686" "x86_64")
url="https://github.com/sambazley/blockbar-${module}"
license=("ZLIB")
makedepends=()
depends=("blockbar")
source=("git+https://github.com/sambazley/blockbar-${module}.git")
md5sums=("SKIP")

pkgver() {
    cd blockbar-${module}
    git show -s --format=%ci HEAD | cut -d' ' -f1-2 | sed -r 's/[^0-9]//g'
}

build() {
    cd "${srcdir}/blockbar-${module}"
    make
}

package() {
    cd "${srcdir}/blockbar-${module}"
    make PREFIX="$pkgdir/usr" install
}