summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 515aa8352fe4d9c330667be9e7ae231089ceea37 (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
32
# Maintainer: √ėyvind 'Mr.Elendig' Heggstad  <mrelendig@har-ikkje.net>>
pkgname=kittypack-git
pkgver=0.2.3
pkgrel=1
pkgdesc="A silly little tool to get info from archlinux.org/packages"
arch=('any')
url="https://github.com/MrElendig/kittypack"
license=('AGPL3')
depends=('python' 'python-requests' 'python-click' 'python-yaml' 'python-setuptools')
makedepends=('git' 'python-docutils')
backup=('etc/kittypack.conf')
source=(git://github.com/MrElendig/kittypack.git)
sha1sums=('SKIP')

pkgver() {
  cd kittypack
  git describe | sed 's/-/./g'
}

build() {
  cd kittypack/doc/man
  rst2man kittypack.1.rst kittypack.1
}

package() {
  cd kittypack
  python3 setup.py install --root="$pkgdir"
  install -D doc/man/kittypack.1 "$pkgdir"/usr/share/man/man1/kittypack.1
  install -D kittypack/kittypack.conf "$pkgdir"/etc/kittypack.conf
}

# vim:set ts=2 sw=2 et: