aports/testing/icdiff/APKBUILD
2021-03-08 17:34:39 +00:00

39 lines
1018 B
Plaintext

# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=icdiff
pkgver=2.0.0
pkgrel=0
pkgdesc="Improved colored diff"
url="https://www.jefftk.com/icdiff"
arch="noarch"
license="Python-2.0"
depends="python3"
makedepends="py3-setuptools bash"
checkdepends="py3-flake8"
source="https://github.com/jeffkaufman/icdiff/archive/release-$pkgver.tar.gz
fix-flake8-binary.patch
"
builddir="$srcdir/icdiff-release-$pkgver"
prepare() {
default_prepare
# patch removes executable bit
chmod +x test.sh icdiff
}
build() {
python3 setup.py build
}
check() {
./test.sh python3
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="743b8526ae401acc0bd9c2d21e7b9592384e775030e74d4d749011da98bdf716b143b53d7bfd2799f9db6bce83ebe75e3876f8ebe72bb515436357726ff228f0 release-2.0.0.tar.gz
fc6fa3c98b245a9ce1830428c1d59b37f75faaab00dbf44a6d78f84318cfb4bf3fdc826fc86b9ca8a9efbd2a760223525270ea79e4d761e64d4a18597693eb64 fix-flake8-binary.patch"