summaryrefslogtreecommitdiff
path: root/user/lxqt-archiver/APKBUILD
blob: 69387eeee2515588a9b91aa52c1f84a17ade31b7 (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
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=lxqt-archiver
pkgver=0.7.0
_lxqt=1.2.0
_lxqt_build=0.12.0
pkgrel=0
pkgdesc="Archive management utility for the LXQt desktop"
url="https://lxqt.github.io/"
arch="all"
options="!check"  # No test suite
license="GPL-2.0+"
depends=""
makedepends="cmake extra-cmake-modules json-glib-dev libfm-qt-dev>=$_lxqt
	lxqt-build-tools>=$_lxqt_build qt5-qttools-dev qt5-qtx11extras-dev"
source="https://github.com/lxqt/lxqt-archiver/releases/download/$pkgver/lxqt-archiver-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver/build"

prepare() {
	mkdir -p "$builddir" && cd "$builddir"/..
	default_prepare
}

build() {
	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() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest ..
}

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

sha512sums="d86fd636b1b2345ead8c4dc0161311b3e361d274902c5b34b9aaccf1a0b9af46d329fbec0d2249197b8e1c837d6949f723451f67fdc9ca4c6b7f1c2cf59daeca  lxqt-archiver-0.7.0.tar.xz"