summaryrefslogtreecommitdiff
path: root/user/xsettingsd/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-06-05 22:23:56 -0500
committerZach van Rijn <me@zv.io>2022-10-21 18:34:01 -0500
commit96765f40426e6aad610a652d8d7bfb92665f7cf1 (patch)
treeb20583e6d21e2b572e20f36193d02fcc496305fd /user/xsettingsd/APKBUILD
parent7d77f763f215205e51430203cf7e937e39a5dbcd (diff)
downloadpackages-96765f40426e6aad610a652d8d7bfb92665f7cf1.tar.gz
packages-96765f40426e6aad610a652d8d7bfb92665f7cf1.tar.bz2
packages-96765f40426e6aad610a652d8d7bfb92665f7cf1.tar.xz
packages-96765f40426e6aad610a652d8d7bfb92665f7cf1.zip
user/xsettingsd: New package
Diffstat (limited to 'user/xsettingsd/APKBUILD')
-rw-r--r--user/xsettingsd/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/xsettingsd/APKBUILD b/user/xsettingsd/APKBUILD
new file mode 100644
index 000000000..77bf659cd
--- /dev/null
+++ b/user/xsettingsd/APKBUILD
@@ -0,0 +1,41 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=xsettingsd
+pkgver=1.0.2
+pkgrel=0
+pkgdesc="Small, fast XSETTINGS daemon implementation"
+url="https://github.com/derat/xsettingsd/wiki"
+arch="all"
+license="BSD-3-Clause"
+depends=""
+checkdepends="gtest gtest-dev"
+makedepends="cmake libx11-dev"
+subpackages="$pkgname-doc"
+source="xsettingsd-$pkgver.tar.gz::https://github.com/derat/xsettingsd/archive/refs/tags/v$pkgver.tar.gz
+ endian.patch
+ "
+
+build() {
+ 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" \
+ ${CMAKE_CROSSOPTS} \
+ .
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="da2a82d0b3f5061a1fad7632d800539f4e81bd3f8631dd724705d0601556c044c62da7469a974cbe8f6d8e070247493ac5776bac966cf36f1fae825562457baa xsettingsd-1.0.2.tar.gz
+bfce6288d2c3f5a15a26f2de842b800317b15e2668f587bf05b72b7be62ccc5cf4cca28023db38aa8b1930d8410d9d7b2e1130e7d04333440ac4b64f6be7682f endian.patch"