diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-07 20:28:41 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-07 20:28:41 -0500 |
commit | ba2664ac922da0a77a8f7cf3feec1983c49110cb (patch) | |
tree | 3cbb76747b0bc259a92d072f1dfee37c93b41788 /user/kcharselect | |
parent | 9a1515ce9b6e463b5faaecb65d932515dfe97473 (diff) | |
download | packages-ba2664ac922da0a77a8f7cf3feec1983c49110cb.tar.gz packages-ba2664ac922da0a77a8f7cf3feec1983c49110cb.tar.bz2 packages-ba2664ac922da0a77a8f7cf3feec1983c49110cb.tar.xz packages-ba2664ac922da0a77a8f7cf3feec1983c49110cb.zip |
user/kcharselect: new package
Diffstat (limited to 'user/kcharselect')
-rw-r--r-- | user/kcharselect/APKBUILD | 44 |
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" |