summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a571402cc6d10d85a038e3d87f7df22d554bdb86 (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
# Maintainer: Tomislav Ivek <tomislav dot ivek at gmail dot com>

pkgname=python-patch-ng
pkgver=1.18.0
pkgrel=1
pkgdesc='Library to parse and apply unified diffs forked from python-patch.'
arch=('any')
url="https://github.com/conan-io/python-patch/"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
_name=${pkgname#python-}
source=($pkgname-$pkgver.tar.gz::"https://pypi.io/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
#        "https://raw.githubusercontent.com/conan-io/python-patch-ng/${pkgver}/LICENSE")
md5sums=('5df1f6f28b8fcf09bc4dfd182caa12d8')

build() {
  cd "$srcdir/$_name-$pkgver"
  python setup.py build
}

package() {
  cd "$srcdir/$_name-$pkgver"
  python setup.py install --optimize=1 --root "$pkgdir"
  # install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}