APKBUILD 1.15 KB
Newer Older
Bart Ribbers's avatar
Bart Ribbers committed
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ki18n
4
pkgver=5.65.0
Bart Ribbers's avatar
Bart Ribbers committed
5 6
pkgrel=0
pkgdesc="Advanced internationalization framework"
7
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
Bart Ribbers's avatar
Bart Ribbers committed
8 9 10 11
url="https://community.kde.org/Frameworks"
license="LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-or-later)"
depends_dev="qt5-qtdeclarative-dev qt5-qtscript-dev"
makedepends="$depends_dev extra-cmake-modules doxygen qt5-qttools-dev"
12
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/ki18n-$pkgver.tar.xz"
Bart Ribbers's avatar
Bart Ribbers committed
13 14 15
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
options="!check"

16 17
prepare() {
	default_prepare
18

19 20 21
	mkdir "$builddir"/build
}

Bart Ribbers's avatar
Bart Ribbers committed
22
build() {
23 24
	cd "$builddir"/build
	cmake "$builddir" \
25
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
Bart Ribbers's avatar
Bart Ribbers committed
26 27 28 29 30 31 32
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	make
}

check() {
33
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
34 35 36 37 38
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}


package() {
39
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
40 41 42
	DESTDIR="$pkgdir" make install
}

43
sha512sums="5d18b42d9026d49543ac58728870d9b1367c6f2d5bec2d5edc88844fc6f2b3077d164d617c5ff3166d663e920886c1742bc60374d3fb6bacae6ab2457ebce323  ki18n-5.65.0.tar.xz"