1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/icdiff/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

38 lines
846 B
Text

# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=icdiff
pkgver=2.0.6
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="black py3-flake8"
source="https://github.com/jeffkaufman/icdiff/archive/release-$pkgver.tar.gz
"
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 --skip-build --root="$pkgdir"
}
sha512sums="
23ed93cc68ae44e661d61cef7e489249fc39e9f8fd18cac5551e89a713aef8cd2ecb37b0f301f543a4ba7003c74b5a311430ab8666760a76ee8441a4ac920ff5 release-2.0.6.tar.gz
"