summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8abb4950ff2b5465f26cb61221e56a4a33d2b618 (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
# Maintainer: Ben Widawsky <ben@bwidawsk.net>
# Initially created with pip2arch: https://github.com/lclarkmichalek/pip2arch
pkgbase='python-b4'
pkgname=('python-b4')
_module='b4'
pkgver='0.5.2'
pkgrel=1
pkgdesc="A tool to work with public-inbox and patch archives"
url="https://git.kernel.org/pub/scm/utils/b4/b4.git"
depends=('python')
makedepends=('python-setuptools' 'python-docutils')
license=('GPL2')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('72d5cf03e58a9c951f8fbc4e9634665d6af76caffbe964b8723199a5f30348f0')

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

package() {
    depends+=()
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

    rst2man man/b4.5.rst b4.5
    install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" COPYING
    install -Dm644 -t "${pkgdir}/usr/share/man/man5/" b4.5
}