summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a8b4a3fdec85d75b33b01807e8e5063d7c4ef0a (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
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgname=git-imerge
pkgver=1.2.0
pkgrel=4
pkgdesc='Incremental merge for Git'
url=https://github.com/mhagger/git-imerge
arch=(any)
license=(GPL2)
depends=(python git)
makedepends=(python-setuptools bash-completion)
checkdepends=(python-tox)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('bae4266f288320b8fe3637f6e3c133ed423a2c85a56f03db4a3210eb99f66c8e11c61cecf7ea0335f4798c92a175acad5525494680c5c3531403fa433b221ee9')

build () {
	cd "$pkgname-$pkgver"
	python setup.py build
}

package () {
	cd "$pkgname-$pkgver"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

check () {
	cd "$pkgname-$pkgver"
	tox --sitepackages --override 'testenv.allowlist_externals=/bin/sh'
}