diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-23 03:15:15 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-23 03:16:31 -0500 |
commit | 3df2f3372f97af2ae6d9b17f03cb22ec31cc7aa8 (patch) | |
tree | 671e3f15bb10caeecfceb842f7bcb03a41a82cce | |
parent | 070ca65f9ce61796f71657e23de6a54259dd0414 (diff) | |
download | packages-3df2f3372f97af2ae6d9b17f03cb22ec31cc7aa8.tar.gz packages-3df2f3372f97af2ae6d9b17f03cb22ec31cc7aa8.tar.bz2 packages-3df2f3372f97af2ae6d9b17f03cb22ec31cc7aa8.tar.xz packages-3df2f3372f97af2ae6d9b17f03cb22ec31cc7aa8.zip |
user/symboleditor: new package
-rw-r--r-- | user/symboleditor/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/user/symboleditor/APKBUILD b/user/symboleditor/APKBUILD new file mode 100644 index 000000000..48e91e83c --- /dev/null +++ b/user/symboleditor/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=symboleditor +_realpkg=SymbolEditor +pkgver=2.0.0 +pkgrel=0 +pkgdesc="Symbol library creator for Qt 5" +url="https://userbase.kde.org/SymbolEditor" +arch="all" +license="GPL-2.0+" +depends="shared-mime-info" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev kdoctools-dev kconfig-dev + ki18n-dev kio-dev kwidgetsaddons-dev kxmlgui-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="https://download.kde.org/stable/$pkgname/$pkgver/src/SymbolEditor-$pkgver.tar.bz2" +builddir="$srcdir/$_realpkg-$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="8baee88fd8ff5f2b6334e80fe7c3fe8044ae521e5a8ffa2588f37dc4a8bf0495c902789bfaaed21a6eaf3c4f6380d18550aaed8046e84b396317104c8a49c993 SymbolEditor-2.0.0.tar.bz2" |