PKGBUILDs/extra/kdiff3/PKGBUILD

41 lines
970 B
Bash
Raw Normal View History

2018-08-21 13:02:14 +00:00
# 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
2019-03-09 00:06:57 +00:00
pkgver=0.9.98.git20190308
2018-08-21 13:02:14 +00:00
pkgrel=1
2019-03-09 00:06:57 +00:00
_commit=8df1172bf96ed1b9b72bb59313ca884b6ae4e052
2018-08-21 13:02:14 +00:00
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'
2019-03-09 00:06:57 +00:00
'cf937b439d988eeb65484cb6967be4b89574e48eed3efe53574842fb5c266e8b')
2018-08-21 13:02:14 +00:00
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
}