summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/libfm-qt/APKBUILD47
-rw-r--r--user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch22
2 files changed, 69 insertions, 0 deletions
diff --git a/user/libfm-qt/APKBUILD b/user/libfm-qt/APKBUILD
new file mode 100644
index 000000000..f69e6a700
--- /dev/null
+++ b/user/libfm-qt/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=libfm-qt
+pkgver=0.11.2
+pkgrel=0
+pkgdesc="Qt library for file management and bindings for libfm"
+url="http://lxqt.org"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+depends_dev="libfm-dev menu-cache-dev"
+makedepends="cmake extra-cmake-modules lxqt-build-tools qt5-qtx11extras-dev qt5-qttools-dev $depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="https://github.com/lxde/libfm-qt/releases/download/$pkgver/libfm-qt-$pkgver.tar.xz
+ libfm-qt-0.11.2-const-fixes.patch"
+builddir="$srcdir/libfm-qt-$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" \
+ -DPULL_TRANSLATIONS=False \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="f31ec46bb7b6aa98bdbf619dba6d18f6180603a88ef841d7330565dab9d604714406075ab20d35c8356ff93eca84478d98e835f2057f5d4cc0339fa448f05570 libfm-qt-0.11.2.tar.xz
+80a92f55832bd69ad9c7b8e14e72fc2c5a0f8d659cc60efca23eb29577180ac9c11b931a500262d4e6ebb290af28effa71ec6255ed77660f7fb14e6ff455fa45 libfm-qt-0.11.2-const-fixes.patch"
diff --git a/user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch b/user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch
new file mode 100644
index 000000000..f9732fce2
--- /dev/null
+++ b/user/libfm-qt/libfm-qt-0.11.2-const-fixes.patch
@@ -0,0 +1,22 @@
+--- libfm-qt-0.11.2/src/folderview.cpp.old 2016-12-21 11:44:23.000000000 -0600
++++ libfm-qt-0.11.2/src/folderview.cpp 2017-10-12 19:33:06.121769699 -0500
+@@ -727,7 +727,7 @@
+ if(!selIndexes.isEmpty()) {
+ PathList paths;
+ QModelIndexList::const_iterator it;
+- for(it = selIndexes.begin(); it != selIndexes.end(); ++it) {
++ for(it = selIndexes.constBegin(); it != selIndexes.constEnd(); ++it) {
+ FmFileInfo* file = model_->fileInfoFromIndex(*it);
+ paths.pushTail(fm_file_info_get_path(file));
+ }
+--- libfm-qt-0.11.2/src/utilities.cpp.old 2016-12-21 11:44:23.000000000 -0600
++++ libfm-qt-0.11.2/src/utilities.cpp 2017-10-12 19:39:07.683967576 -0500
+@@ -40,7 +40,7 @@
+ QList<QUrl>::const_iterator it;
+ FmPathList* pathList = fm_path_list_new();
+
+- for(it = urls.begin(); it != urls.end(); ++it) {
++ for(it = urls.constBegin(); it != urls.constEnd(); ++it) {
+ QUrl url = *it;
+ FmPath* path = fm_path_new_for_uri(url.toString().toUtf8());
+ fm_path_list_push_tail(pathList, path);