# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
# Contributor: Patrick Leslie Polzer <polzer@gnu.org>
# Contributor: Aaron 'venisonslurpee' Laursen <venisonslurpee@gmail.com>

pkgname=zsh-lovers
pkgver=0.9.1
pkgrel=3
pkgdesc="A collection of tips, tricks and examples for the Z shell."
arch=('any')
url='https://grml.org/zsh/#zshlovers'
license=('GPL')
source=("$pkgname-$pkgver.tar.gz::https://github.com/grml/${pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('acfe9da0a15d1c3df082d2927fb86c42')
makedepends=('asciidoc')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}/"
  a2x -vv --no-xmllint -f manpage zsh-lovers.1.txt
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/"
  install -Dm0644 "${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
}
