summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0cd23f3c71ede4ca73edca420626fbdd2271b0ea (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
# Maintainer: Jelle van der Waa <jelle@archlinux.org>

pkgname=pytest-pacman-git
pkgver=r11.552a376
pkgrel=1
pkgdesc="pacman db pytest fixture"
arch=('any')
license=('MIT')
url="https://gitlab.archlinux.org/jelle/pytest-pacman"
depends=(python python-pytest python-setuptools)
makedepends=(git)
source=(git+https://gitlab.archlinux.org/jelle/pytest-pacman.git)
sha512sums=('SKIP')

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

build() {
  cd pytest-pacman
  python setup.py build
}

package() {
  cd pytest-pacman
  python setup.py install --root="${pkgdir}" -O1 --skip-build
  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}