void-packages/srcpkgs/icdiff/template
2017-04-07 17:55:39 +02:00

39 lines
983 B
Bash

# Template file for 'icdiff'
pkgname=icdiff
version=1.8.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=57a2f1164e9cce98e44cba35473203a19034e919a69762589779f54f4612d8f7
alternatives="
icdiff:icdiff:/usr/bin/icdiff2
icdiff:git-icdiff:/usr/bin/git-icdiff2"
pre_build() {
cp ${pkgname}{,.py}
}
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*
}
}