blob: cdb179ad89a69fa55383a64a3cbad746734da888 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kholidays
pkgver=5.46.0
pkgrel=0
pkgdesc="List of national holidays for many countries"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1"
depends=""
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev"
makedepends="$depends_dev cmake extra-cmake-modules qt5-qttools-dev"
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="http://download.kde.org/stable/frameworks/${pkgver%.*}/kholidays-$pkgver.tar.xz"
builddir="$srcdir/kholidays-$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"
# Requires *actual* *locale* *support*!
CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E testholidayregion
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="c94bff75cea9df8654407b92d87947204cbf2111925d46d5384e7174f7f47960a226f3b85864f3adbc4b3c3255e439bc139b192b05cf32483b6f1e3de0840df2 kholidays-5.46.0.tar.xz"
|