void-packages/srcpkgs/icdiff/template
2017-10-12 04:45:34 +02:00

35 lines
945 B
Bash

# Template file for 'icdiff'
pkgname=icdiff
version=1.9.1
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=18cf11866150eba1ecec1370611921246918310f4b5cb101045db523a05fb37d
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*
}
}