summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 831ce8dc0aeb08b7ba07edde2c3adafe28f9a4ea (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: zhullyb <zhullyb@outlook.com>

pkgname=python-bsdiff4
pkgver=1.2.0
pkgrel=2
pkgdesc="binary diff and patch using the BSDIFF4-format"
url="https://github.com/ilanschnell/bsdiff4"
depends=('python' )
makedepends=('python' )
license=('BSD')
arch=('i686' 'x86_64')
source=("https://pypi.python.org/packages/source/b/bsdiff4/bsdiff4-${pkgver}.tar.gz"
        "https://raw.githubusercontent.com/ilanschnell/bsdiff4/master/LICENSE")
md5sums=('a0d047e91429ce67a3b0231facf41169'
         'SKIP')

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

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