blob: d289e7f6d863067e24e581996756d2889d649a34 (
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: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
pkgname=icdiff
pkgver=2.0.7
pkgrel=1
pkgdesc="Improved colored diff"
arch=('any')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
url="https://github.com/jeffkaufman/icdiff"
license=('PSF')
source=($pkgname-$pkgver.tar.gz::https://github.com/jeffkaufman/icdiff/archive/release-$pkgver.tar.gz)
sha256sums=('147ebdd0c2b8019d0702bbbb1349d77442a4f05530cba39276b58b005ca08c77')
prepare() {
cd $pkgname-release-$pkgver
sed 's/ICDIFF_OPTIONS $\*"/ICDIFF_OPTIONS" $*/' -i git-icdiff
}
build() {
cd $pkgname-release-$pkgver
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd $pkgname-release-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}
|