summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea23f77a3ef65dcbd718c71215d4cd9cd84ce0b9 (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
33
# Maintainer: Gobidev <adrian[dot]groh[at]t[dash]online[dot]de>
# Contributor: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: xiretza <xiretza+aur@xiretza.xyz>
# Contributor: Adhityaa Chandrasekar <c.adhityaa@gmail.com>

pkgname=python-unidiff
# https://github.com/matiasb/python-unidiff/blob/master/HISTORY
pkgver=0.7.5
pkgrel=5
pkgdesc='Simple Python library to parse and interact with unified diff data'
arch=('any')
url="https://github.com/matiasb/python-unidiff"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=(https://files.pythonhosted.org/packages/source/u/unidiff/unidiff-$pkgver.tar.gz)
sha256sums=('2e5f0162052248946b9f0970a40e9e124236bf86c82b70821143a6fc1dea2574')

build() {
  cd unidiff-$pkgver
  python setup.py build
}

check() {
  cd unidiff-$pkgver
  python -m unittest discover -s tests
}

package() {
  cd unidiff-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}