void-packages/srcpkgs/icdiff/template
2017-04-17 17:17:27 +02:00

35 lines
945 B
Bash

# Template file for 'icdiff'
pkgname=icdiff
version=1.9.0
revision=1
wrksrc=${pkgname}-release-${version}
noarch=yes
build_style=python-module
pycompile_module="icdiff.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Improved colored diff (Python2)"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="PSF"
homepage="http://www.jefftk.com/icdiff"
distfiles="https://github.com/jeffkaufman/icdiff/archive/release-${version}.tar.gz"
checksum=ef64fda913c21be229e1ed967c577edcfc917543293c3bbd6d1a5775a84471cb
alternatives="
icdiff:icdiff:/usr/bin/icdiff2
icdiff:git-icdiff:/usr/bin/git-icdiff2"
python3-icdiff_package() {
noarch=yes
depends="python3"
pycompile_module="icdiff.py"
alternatives="
icdiff:icdiff:/usr/bin/icdiff3
icdiff:git-icdiff:/usr/bin/git-icdiff3"
short_desc="${short_desc/2/3}"
pkg_install() {
vmove usr/bin/icdiff3
vmove usr/bin/git-icdiff3
vmove usr/lib/python3*
}
}