diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-12-30 16:38:03 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-12-30 16:38:03 -0600 |
commit | 02258457438fa438aa050c57b8f2079b8dd69c4d (patch) | |
tree | e1e850a7f0f5964fa091236cea5d65a5b2aee250 | |
parent | cf5e3c7c71d481c4c5005c8353587dccea4238fa (diff) | |
download | packages-02258457438fa438aa050c57b8f2079b8dd69c4d.tar.gz packages-02258457438fa438aa050c57b8f2079b8dd69c4d.tar.bz2 packages-02258457438fa438aa050c57b8f2079b8dd69c4d.tar.xz packages-02258457438fa438aa050c57b8f2079b8dd69c4d.zip |
user/quaternion: new package
-rw-r--r-- | user/quaternion/APKBUILD | 54 | ||||
-rw-r--r-- | user/quaternion/install-library.patch | 9 |
2 files changed, 63 insertions, 0 deletions
diff --git a/user/quaternion/APKBUILD b/user/quaternion/APKBUILD new file mode 100644 index 000000000..370e68900 --- /dev/null +++ b/user/quaternion/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=quaternion +pkgver=0.0.5 +_libver=0.2 +pkgrel=0 +pkgdesc="Qt5-based Matrix chat client" +url="https://matrix.org/docs/projects/client/quaternion.html" +arch="all" +license="GPL-3.0" +makedepends="cmake qt5-qtbase-dev qt5-qtdeclarative-dev" +subpackages="" +source="quaternion-$pkgver.tar.gz::https://github.com/QMatrixClient/Quaternion/archive/v$pkgver.tar.gz + libqmatrixclient-$_libver.tar.gz::https://github.com/QMatrixClient/libqmatrixclient/archive/v0.2-q0.0.5.tar.gz + install-library.patch + " +builddir="$srcdir/Quaternion-$pkgver" + +unpack() { + default_unpack + mv "$srcdir"/libqmatrixclient-$_libver-q$pkgver/* "$builddir"/lib/ +} + +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() { + for i in "$builddir" "$builddir"/lib; do + cd $i + make DESTDIR="$pkgdir" install + done +} + +sha512sums="ec4a6196ff687d08de49f47141a7869e8d0c56eee142a70682bd9880eb5ae8fb96c38616eec0d61b250a3f0a4cf358debeaa7c001f8dc88c58367bd0d125cb93 quaternion-0.0.5.tar.gz +3065793171ee60b5bc325756b9c82a57db0e4993b608d080ed6f54e9c55a835a594cf519681aede3063d0126c6f778ac885ab301569d25970aa22b7aa85bdadb libqmatrixclient-0.2.tar.gz +a814970d408bf43706c20f01a39b1503c5054efc5e8c36aadae36fd7a028e9ed286c79b846d960ca0c4791be463a5aa33ecf7a09d5dd6e87268af79b791fe58d install-library.patch" diff --git a/user/quaternion/install-library.patch b/user/quaternion/install-library.patch new file mode 100644 index 000000000..66fb1615c --- /dev/null +++ b/user/quaternion/install-library.patch @@ -0,0 +1,9 @@ +--- Quaternion-0.0.5/lib/CMakeLists.txt.old 2017-12-21 00:41:34.000000000 -0600 ++++ Quaternion-0.0.5/lib/CMakeLists.txt 2017-12-30 16:33:32.858838009 -0600 +@@ -100,3 +100,6 @@ + install (FILES mime/packages/freedesktop.org.xml + DESTINATION mime/packages) + endif (WIN32) ++ ++install (TARGETS qmatrixclient ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |