summaryrefslogblamecommitdiff
path: root/user/rsibreak/APKBUILD
blob: 5f7262ce7a2983f052a3d9f86d3025915c7e5e89 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
             



                                                                             
                                          
                      




                                                                            

                                                                              


























                                                                                          
                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=rsibreak
pkgver=0.12.8
pkgrel=0
pkgdesc="Helps you avoid wrist injury by telling you when to stop for a rest"
url="https://www.kde.org/applications/utilities/rsibreak/"
arch="all"
options="!check"  # All tests require X11.
license="GPL-2.0-only"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev kconfig-dev kcrash-dev
	kconfigwidgets-dev kdbusaddons-dev kdoctools-dev kiconthemes-dev
	ki18n-dev kidletime-dev knotifications-dev knotifyconfig-dev
	ktextwidgets-dev kxmlgui-dev kwindowsystem-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/rsibreak/0.12/rsibreak-$pkgver.tar.xz"

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="6ab0c43232e56278525ce5ba07a6c7a5f7bc5da74a8461e3cdaed7ae832304ac9f3c1b3ff0adfdeaab6b8231bdcecae4e8fee9529df97b8ce2208f4cf74f0eb1  rsibreak-0.12.8.tar.xz"