summaryrefslogtreecommitdiff
path: root/user/krusader/APKBUILD
blob: a141befdb5a77923b09d038a11cb5c5ca916b45d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=krusader
pkgver=2.6.0
pkgrel=0
pkgdesc="Advanced, twin-panel (commander style) file manager"
url="https://krusader.org/"
arch="all"
license="GPL-2.0"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev karchive-dev kcodecs-dev
	kbookmarks-dev kcompletion-dev kcoreaddons-dev kconfig-dev kdoctools-dev
	ki18n-dev kiconthemes-dev kitemviews-dev kio-dev knotifications-dev
	kparts-dev solid-dev ktextwidgets-dev kwallet-dev kwidgetsaddons-dev
	kwindowsystem-dev kxmlgui-dev kguiaddons-dev"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://download.kde.org/stable/krusader/$pkgver/krusader-$pkgver.tar.xz
	posix-headers.patch"
builddir="$srcdir/krusader-$pkgver"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="d7ae1696e77ddbd8b18043e8497356151ddaa69192a89dbf1f4381216318aaca97a0be4e44595e51007f1eccf73eec55c3bd9f694aaacfa138aa3391f1f5d898  krusader-2.6.0.tar.xz
6df1a858c896d91d2f09a0cf49a90177655cf21bd7fe18c5b82e0805f81d3c121978b932a2f139d2e0e4ca8d9741d181274b968628e905f87557b6ad43f05a59  posix-headers.patch"