summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/liblxqt/APKBUILD44
-rw-r--r--user/liblxqt/versioning.patch15
2 files changed, 59 insertions, 0 deletions
diff --git a/user/liblxqt/APKBUILD b/user/liblxqt/APKBUILD
new file mode 100644
index 000000000..beb945b19
--- /dev/null
+++ b/user/liblxqt/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=liblxqt
+pkgver=0.11.1
+pkgrel=0
+pkgdesc="Core LXQt library."
+url="http://lxqt.org"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+depends_dev=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtx11extras-dev qt5-qttools-dev libxscrnsaver-dev libqtxdg-dev kwindowsystem-dev lxqt-build-tools $depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="https://github.com/lxde/liblxqt/releases/download/$pkgver/liblxqt-$pkgver.tar.xz
+ versioning.patch"
+builddir="$srcdir/liblxqt-$pkgver"
+# no tests
+options="!check"
+
+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=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DPULL_TRANSLATIONS=False \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="c300ff6497e73d6a447b2d3ac14338cfa3e07aefafcce84dbcf22578e5d4370a1f9a5350d7a88db1f2668649f5b503378a97fbb39a238cb777e180025587eb66 liblxqt-0.11.1.tar.xz
+f81766a330ef0d5404f4723003ea486725588e0dda93d7784d31ed0ff8a59b17b764bd6df89b5da14318210585fc42d9d046ed0b2db6b52cb2e450daad7e0cd0 versioning.patch"
diff --git a/user/liblxqt/versioning.patch b/user/liblxqt/versioning.patch
new file mode 100644
index 000000000..14d6eba24
--- /dev/null
+++ b/user/liblxqt/versioning.patch
@@ -0,0 +1,15 @@
+diff -Nurd liblxqt-0.11.1/CMakeLists.txt liblxqt-0.11.1.new/CMakeLists.txt
+--- liblxqt-0.11.1/CMakeLists.txt 2017-01-01 21:49:10.000000000 +0000
++++ liblxqt-0.11.1.new/CMakeLists.txt 2017-10-11 17:31:00.502689492 +0000
+@@ -6,6 +6,11 @@
+ set(QTXDG_MINIMUM_VERSION "2.0.0")
+ set(LXQTBT_MINIMUM_VERSION "0.3.1")
+
++set(LXQT_MAJOR_VERSION 0)
++set(LXQT_MINOR_VERSION 11)
++set(LXQT_PATCH_VERSION 1)
++set(LXQT_VERSION ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_PATCH_VERSION})
++
+ include(CMakePackageConfigHelpers)
+ include(GNUInstallDirs) # Standard directories for installation
+