blob: 057c98b711107eca413c9e99649fe9de0c38dbe5 (
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
34
35
36
37
|
# Maintainer: Morgenstern <charles [at] charlesbwise [dot] com>
# Contributor: zhullyb <zhullyb@outlook.com>
pkgname=python-bsdiff4
pkgver=1.2.6
pkgrel=1
pkgdesc="Binary diff and patch using the BSDIFF4-format"
arch=('x86_64')
url="https://github.com/ilanschnell/${pkgname##*-}"
license=('BSD-3-Clause'
'BSD-Protection')
depends=('python')
makedepends=('python-build'
'python-installer'
'python-setuptools'
'python-wheel')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha512sums=('768f88277cb2cfdd61923cf392a0da5b016ca0bb4668158245b0eac7327ae6ad5e3a04887404b609ba1872c14913e637c9c6a426d75dd3b79aa8d89ceed1967b')
build() {
cd "${pkgname##*-}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname##*-}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
head -n 28 LICENSE > "LICENSE-${pkgname}"
head -n +29 LICENSE > LICENSE-cx_bsdiff
rm LICENSE
install -vDm0644 "LICENSE-${pkgname}" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-${pkgname}"
install -vDm0644 "LICENSE-cx_bsdiff" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cx_bsdiff"
}
|