summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/kcharselect/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/user/kcharselect/APKBUILD b/user/kcharselect/APKBUILD
new file mode 100644
index 000000000..1c479bf82
--- /dev/null
+++ b/user/kcharselect/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kcharselect
+pkgver=17.08.1
+pkgrel=0
+pkgdesc="Tool to select special characters from all installed fonts"
+url="https://utils.kde.org/projects/kcharselect/"
+arch="all"
+license="GPL-2.0"
+depends=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev kbookmarks-dev kcrash-dev
+ kdoctools-dev ki18n-dev kwidgetsaddons-dev kxmlgui-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://download.kde.org/stable/applications/$pkgver/src/kcharselect-$pkgver.tar.xz"
+builddir="$srcdir/kcharselect-$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="5345c46d194d511e6b3df56c8f66c52b4f71724470d36a724799b0b3d157fef101c8de5a9da1af5d4935563be46fdf45ea2956c5bb3dd6235874b896647a492b kcharselect-17.08.1.tar.xz"