From 77961f52e41727e8a6aa2aae6528d7eb1bc07fbe Mon Sep 17 00:00:00 2001 From: Ben Sung Hsu Date: Fri, 6 Jul 2018 00:47:26 -0500 Subject: [PATCH] New package: kdiff3-0.9.98 This commit adds the 'kdiff3' package to the repo. (*) Patched the generated makefile to use /usr instead of /usr/local. PATCH 2: Fixed review comment and removed arm builds (*) Clarified short description. (*) Removed dead comments. (*) Fixed maintainer and license to use SPDX expr. (*) Removed arm builds since qmake is missing on those platforms. PATCH 3: Fixed missing endquote in maintainer line (*) Removed comments regarding license. (*) Move qt tools to hostmakedepends to allow compile on arm/aarch64. PATCH 4: Rework per review comment (*) Fixed hostmakedepends and makedepends (*) Converted to use qmake build_style per review comment PATCH 5: Fix review comment (*) Removed end of file newline. (*) use ${SOURCEFORGE_SITE} instead of fixed URL. --- srcpkgs/kdiff3/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/kdiff3/template diff --git a/srcpkgs/kdiff3/template b/srcpkgs/kdiff3/template new file mode 100644 index 00000000000..261d0853fc4 --- /dev/null +++ b/srcpkgs/kdiff3/template @@ -0,0 +1,21 @@ +# Template file for 'kdiff3' +pkgname=kdiff3 +version=0.9.98 +revision=1 +build_wrksrc=src-QT4 +build_style=qmake +makedepends="qt-devel" +short_desc="A file comparator/merge tool (qt4 version, no kde dep)" +maintainer="Ben Sung Hsu " +license="GPL-2.0-or-later" +homepage="http://kdiff3.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/kdiff3/kdiff3-${version}.tar.gz" +checksum=802c1ababa02b403a5dca15955c01592997116a24909745016931537210fd668 + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+="qt-devel qt-host-tools" +fi + +pre_install() { + sed -ie 's@usr\/local@usr@g' Makefile +}