summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 62b0dd11a2c4cc096f880bbf6a2b98be1ce9c7f8 (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: Maxim Andersson <thesilentboatman@gmail.com>
# Contributor: Martin Ortbauer <mortbauer@gmail.com>

pkgname=aur-comment-fetcher-git
_gitname=aur-comment-fetcher
pkgver=r20.c3f0e12
pkgrel=1
pkgdesc="A simple script fetching the comments of packages in AUR"
arch=('any')
url="https://github.com/mortbauer/aur-comment-fetcher"
license=('GPL')
depends=('python-click' 'python-requests' 'python-beautifulsoup4' 'python-lxml' 'python3-aur')
makedepends=('git')
provides=('aur-comment-fetcher')
conflicts=('aur-comment-fetcher')
source=('git://github.com/mortbauer/aur-comment-fetcher.git')
sha256sums=('SKIP')

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

package() {
  cd "${srcdir}/${_gitname}"

  install -D aur-comment-fetch -t "${pkgdir}/usr/bin"
  install -Dm644 bash_completion "${pkgdir}/usr/share/bash-completion/completions/aur-comment-fetch"
}

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