diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-01 05:22:06 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-01 05:22:06 -0500 |
commit | ae97b51b9fb3699cbbf57f77cf84442d7e4cf784 (patch) | |
tree | a28142501f57ad8d2a39d78016c72235a7aca606 /user/kunitconversion/APKBUILD | |
parent | ab3d2e825cc1d82315c4798a3ab449c7779039ce (diff) | |
download | packages-ae97b51b9fb3699cbbf57f77cf84442d7e4cf784.tar.gz packages-ae97b51b9fb3699cbbf57f77cf84442d7e4cf784.tar.bz2 packages-ae97b51b9fb3699cbbf57f77cf84442d7e4cf784.tar.xz packages-ae97b51b9fb3699cbbf57f77cf84442d7e4cf784.zip |
user/kunitconversion: new package
Diffstat (limited to 'user/kunitconversion/APKBUILD')
-rw-r--r-- | user/kunitconversion/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/user/kunitconversion/APKBUILD b/user/kunitconversion/APKBUILD new file mode 100644 index 000000000..031a2b817 --- /dev/null +++ b/user/kunitconversion/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=kunitconversion +pkgver=5.38.0 +pkgrel=0 +pkgdesc="Convert between metric and imperial" +url="https://www.kde.org/" +arch="all" +license="LGPL-2.1" +options="!check" # Tests require downloading currency information from internet. +depends="" +depends_dev="qt5-qtbase-dev" +makedepends="$depends_dev cmake extra-cmake-modules" +install="" +subpackages="$pkgname-dev $pkgname-lang" +source="http://download.kde.org/stable/frameworks/5.38/kunitconversion-$pkgver.tar.xz" +builddir="$srcdir/kunitconversion-$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="421dbf9e84904d14065c8f72ddbd61892ec060627c4eb3e03a98a03ff998ca1f137a133a34a8bde823538d3a7554b0fea8a72dbfe9154d79d6dcc8dcddf413c2 kunitconversion-5.38.0.tar.xz" |