summaryrefslogtreecommitdiff
path: root/user/liblxqt/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/liblxqt/APKBUILD')
-rw-r--r--user/liblxqt/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/user/liblxqt/APKBUILD b/user/liblxqt/APKBUILD
new file mode 100644
index 000000000..9ba79a4d1
--- /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"