diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -2,19 +2,20 @@ # Contributor: zhullyb <zhullyb@outlook.com> pkgname=python-bsdiff4 -pkgver=1.2.3 +pkgver=1.2.4 pkgrel=2 pkgdesc="Binary diff and patch using the BSDIFF4-format" arch=('x86_64') url="https://github.com/ilanschnell/${pkgname##*-}" -license=('BSD') +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=('266d2f0ef1dfd97370e80f272eb0818a8f0c3cbecb15c07069242bedb15e1c3d019b36910a33afa364945a4b0993113a4ea02e22f63ab109b196d364ea7dbf0e') +sha512sums=('ee84f7f110fe76846cb796035bf86d62522656fd7fdedaa24c5aa98c79c716c1096f0c9460ad0df43eb1911314c3ba856946580f70259d32721cb5934a907e51') build() { cd "${pkgname##*-}-${pkgver}" @@ -24,6 +25,13 @@ build() { package() { cd "${pkgname##*-}-${pkgver}" python -m installer --destdir="${pkgdir}" dist/*.whl - install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + 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" } |