summaryrefslogtreecommitdiff
path: root/user/kholidays
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-08 05:20:17 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-08 05:20:17 -0500
commit595af4b4016b00540a09703f31092d5170afa7d8 (patch)
tree64215bf06da61bcd824b391079e5077bef2cb508 /user/kholidays
parent686fb390fb7853a3f96aef3f78ee3371be819df1 (diff)
downloadpackages-595af4b4016b00540a09703f31092d5170afa7d8.tar.gz
packages-595af4b4016b00540a09703f31092d5170afa7d8.tar.bz2
packages-595af4b4016b00540a09703f31092d5170afa7d8.tar.xz
packages-595af4b4016b00540a09703f31092d5170afa7d8.zip
user/kholidays: new package
Diffstat (limited to 'user/kholidays')
-rw-r--r--user/kholidays/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/kholidays/APKBUILD b/user/kholidays/APKBUILD
new file mode 100644
index 000000000..e6018c534
--- /dev/null
+++ b/user/kholidays/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kholidays
+pkgver=17.08.1
+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/applications/$pkgver/src/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="6a369bf20ee711bc1fc5134245f2909fac8754eb73291c7cfedb6cc131833b8d6156e4a444d4a56f36bfab8ed1a7fa23efd91f671ec8c496db73440fd08201df kholidays-17.08.1.tar.xz"