# Maintainer: Patrice Peterson # Contributor: Vivien Didelot pkgname=i3blocks-git _pkgname=i3blocks pkgver=1.2.r66.g55c9832 pkgrel=2 pkgdesc='Define blocks for your i3bar status line' arch=('i686' 'x86_64') url="https://github.com/vivien/$_pkgname" license=('GPL3') makedepends=('git' 'ruby-ronn') optdepends=('acpi: For example battery script' 'sysstat: For example cpu_usage script' 'alsa-utils: For default volume script' 'playerctl: For mediaplayer contrib script' 'openvpn: For openvpn contrib script') provides=("$_pkgname") conflicts=("$_pkgname") source=("git+https://github.com/vivien/$_pkgname") sha256sums=('SKIP') pkgver () { cd "$srcdir/$_pkgname" git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' } build () { make -C "$srcdir/$_pkgname" PREFIX=/usr } package () { make -C "$srcdir/$_pkgname" DESTDIR="$pkgdir" PREFIX=/usr install } # vim: et ts=2 sw=2