mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
40 lines
970 B
Bash
40 lines
970 B
Bash
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
# Maintainer: Eric Bélanger <eric@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - patch to explicitly link v5/v6 with libatomic
|
|
|
|
pkgname=kdiff3
|
|
pkgver=0.9.98.git20180916
|
|
pkgrel=1
|
|
_commit=1c8cde9367a57b9e8884f858ae28b3acb226b728
|
|
pkgdesc="A KDE file comparator/merge tool"
|
|
arch=(x86_64)
|
|
url="https://kdiff3.sourceforge.net/"
|
|
license=(GPL)
|
|
depends=(kparts hicolor-icon-theme)
|
|
makedepends=(extra-cmake-modules kdoctools git)
|
|
source=(git://git.kde.org/kdiff3#commit=$_commit
|
|
0001-link-atomic.patch)
|
|
sha256sums=('SKIP'
|
|
'2ace78e6fbc835e9192faefcbb651606ffe5a1e7d8fdfe620726f48117b7ab8e')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
if [[ $CARCH == "armv6h" || $CARCH == "arm" ]]; then
|
|
cd $pkgname
|
|
patch -p1 -i ../0001-link-atomic.patch
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../$pkgname \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
}
|