void-packages/srcpkgs/icdiff/template
2018-08-11 15:47:29 +02:00

41 lines
1.1 KiB
Bash

# Template file for 'icdiff'
pkgname=icdiff
version=1.9.3
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="Python-2.0"
homepage="http://www.jefftk.com/icdiff"
changelog="https://github.com/jeffkaufman/icdiff/raw/master/ChangeLog"
distfiles="https://github.com/jeffkaufman/icdiff/archive/release-${version}.tar.gz"
checksum=090b0f96c5df5ae5d71f6e5325bca566dd47e8b61ec4b59d4e40acb9ffcb878f
alternatives="
icdiff:icdiff:/usr/bin/icdiff2
icdiff:git-icdiff:/usr/bin/git-icdiff2"
post_install() {
vlicense LICENSE
}
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*
vlicense LICENSE
}
}