mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
New package: libaccounts-qt-1.17
This commit is contained in:
parent
974b3f3803
commit
e6af60b3b1
9 changed files with 143 additions and 53 deletions
61
srcpkgs/libaccounts-qt/patches/cross.patch
Normal file
61
srcpkgs/libaccounts-qt/patches/cross.patch
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
--- a/Accounts/AccountsQt5Config.cmake.in
|
||||||
|
+++ b/Accounts/AccountsQt5Config.cmake.in
|
||||||
|
@@ -1,5 +1,25 @@
|
||||||
|
# ACCOUNTSQT_INCLUDE_DIRS - The libaccounts-qt include directories
|
||||||
|
# ACCOUNTSQT_LIBRARIES - The libraries needed to use libaccounts-qt
|
||||||
|
|
||||||
|
-set(ACCOUNTSQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
|
||||||
|
-set(ACCOUNTSQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET}/)
|
||||||
|
+# Compute the installation prefix relative to this file.
|
||||||
|
+get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||||
|
+# Use original install prefix when loaded through a
|
||||||
|
+# cross-prefix symbolic link such as /lib -> /usr/lib.
|
||||||
|
+get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
|
||||||
|
+get_filename_component(_realOrig "/usr/lib/cmake/AccountsQt5" REALPATH)
|
||||||
|
+if(_realCurr STREQUAL _realOrig)
|
||||||
|
+ set(_IMPORT_PREFIX "/usr/lib/cmake/AccountsQt5")
|
||||||
|
+endif()
|
||||||
|
+unset(_realOrig)
|
||||||
|
+unset(_realCurr)
|
||||||
|
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||||
|
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||||
|
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||||
|
+if(_IMPORT_PREFIX STREQUAL "/")
|
||||||
|
+ set(_IMPORT_PREFIX "")
|
||||||
|
+endif()
|
||||||
|
+
|
||||||
|
+set(ACCOUNTSQT_LIBRARIES ${_IMPORT_PREFIX}/lib/lib$${TARGET}.so)
|
||||||
|
+set(ACCOUNTSQT_INCLUDE_DIRS ${_IMPORT_PREFIX}/include/$${TARGET}/)
|
||||||
|
+set(ACCOUNTSQT5_LIBRARIES ${_IMPORT_PREFIX}/lib/lib$${TARGET}.so)
|
||||||
|
+set(ACCOUNTSQT5_INCLUDE_DIRS ${_IMPORT_PREFIX}/include/$${TARGET}/)
|
||||||
|
--- a/Accounts/AccountsQt6Config.cmake.in
|
||||||
|
+++ b/Accounts/AccountsQt6Config.cmake.in
|
||||||
|
@@ -1,5 +1,25 @@
|
||||||
|
# ACCOUNTSQT_INCLUDE_DIRS - The libaccounts-qt include directories
|
||||||
|
# ACCOUNTSQT_LIBRARIES - The libraries needed to use libaccounts-qt
|
||||||
|
|
||||||
|
-set(ACCOUNTSQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
|
||||||
|
-set(ACCOUNTSQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET}/)
|
||||||
|
\ No newline at end of file
|
||||||
|
+# Compute the installation prefix relative to this file.
|
||||||
|
+get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||||
|
+# Use original install prefix when loaded through a
|
||||||
|
+# cross-prefix symbolic link such as /lib -> /usr/lib.
|
||||||
|
+get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
|
||||||
|
+get_filename_component(_realOrig "/usr/lib/cmake/AccountsQt6" REALPATH)
|
||||||
|
+if(_realCurr STREQUAL _realOrig)
|
||||||
|
+ set(_IMPORT_PREFIX "/usr/lib/cmake/AccountsQt6")
|
||||||
|
+endif()
|
||||||
|
+unset(_realOrig)
|
||||||
|
+unset(_realCurr)
|
||||||
|
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||||
|
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||||
|
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||||
|
+if(_IMPORT_PREFIX STREQUAL "/")
|
||||||
|
+ set(_IMPORT_PREFIX "")
|
||||||
|
+endif()
|
||||||
|
+
|
||||||
|
+set(ACCOUNTSQT_LIBRARIES ${_IMPORT_PREFIX}/lib/lib$${TARGET}.so)
|
||||||
|
+set(ACCOUNTSQT_INCLUDE_DIRS ${_IMPORT_PREFIX}/include/$${TARGET}/)
|
||||||
|
+set(ACCOUNTSQT6_LIBRARIES ${_IMPORT_PREFIX}/lib/lib$${TARGET}.so)
|
||||||
|
+set(ACCOUNTSQT6_INCLUDE_DIRS ${_IMPORT_PREFIX}/include/$${TARGET}/)
|
78
srcpkgs/libaccounts-qt/template
Normal file
78
srcpkgs/libaccounts-qt/template
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
# Template file for 'libaccounts-qt'
|
||||||
|
pkgname=libaccounts-qt
|
||||||
|
version=1.17
|
||||||
|
revision=1
|
||||||
|
build_style=qmake
|
||||||
|
configure_args="LIBDIR=/usr/lib .."
|
||||||
|
hostmakedepends="pkg-config doxygen qt5-qmake qt5-host-tools
|
||||||
|
qt6-base"
|
||||||
|
makedepends="libaccounts-glib-devel qt5-devel qt6-base-devel"
|
||||||
|
short_desc="Client library to the accounts database"
|
||||||
|
maintainer="John Rowley <enterthevoid@codesector.co>"
|
||||||
|
license="LGPL-2.1-only"
|
||||||
|
homepage="https://gitlab.com/accounts-sso/libaccounts-qt"
|
||||||
|
distfiles="${homepage}/-/archive/VERSION_${version}/libaccounts-qt-VERSION_${version}.tar.gz"
|
||||||
|
checksum=6ed3e976133962c1c88f6c66928ba0d0a17a570843577d31e783dc891659e5d8
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
mkdir -p build-qt5 build-qt6
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
build_wrksrc=build-qt5
|
||||||
|
}
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
build_wrksrc="build-qt6"
|
||||||
|
QT=qt6
|
||||||
|
do_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
make -C build-qt5 ${make_jobs}
|
||||||
|
make -C build-qt6 ${make_jobs}
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
make -C build-qt5 install DESTDIR=${DESTDIR} PREFIX=/usr \
|
||||||
|
INSTALL_ROOT=${DESTDIR} STRIP=true
|
||||||
|
make -C build-qt6 install DESTDIR=${DESTDIR} PREFIX=/usr \
|
||||||
|
INSTALL_ROOT=${DESTDIR} STRIP=true
|
||||||
|
}
|
||||||
|
|
||||||
|
libaccounts-qt5_package() {
|
||||||
|
short_desc+=" - Qt5"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/libaccounts-qt5.so.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libaccounts-qt6_package() {
|
||||||
|
short_desc+=" - Qt6"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/libaccounts-qt6.so.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libaccounts-qt5-devel_package() {
|
||||||
|
short_desc+=" - Qt5 - development files"
|
||||||
|
depends="qt5-devel libaccounts-qt5>=${version}_${revision}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include/accounts-qt5
|
||||||
|
vmove usr/lib/libaccounts-qt5.so
|
||||||
|
vmove usr/lib/cmake/AccountsQt5
|
||||||
|
vmove usr/lib/pkgconfig/accounts-qt5.pc
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libaccounts-qt6-devel_package() {
|
||||||
|
short_desc+=" - Qt6 - development files"
|
||||||
|
depends="qt6-base-devel libaccounts-qt6>=${version}_${revision}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include/accounts-qt6
|
||||||
|
vmove usr/lib/libaccounts-qt6.so
|
||||||
|
vmove usr/lib/cmake/AccountsQt6
|
||||||
|
vmove usr/lib/pkgconfig/accounts-qt6.pc
|
||||||
|
vmove usr/share/doc
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/libaccounts-qt5
Symbolic link
1
srcpkgs/libaccounts-qt5
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
libaccounts-qt
|
|
@ -1 +1 @@
|
||||||
libaccounts-qt5
|
libaccounts-qt
|
|
@ -1,26 +0,0 @@
|
||||||
--- a/Accounts/AccountsQt5Config.cmake.in 2019-09-18 21:00:34.000000000 +0200
|
|
||||||
+++ b/Accounts/AccountsQt5Config.cmake.in 2019-09-18 21:00:34.000000000 +0200
|
|
||||||
@@ -1,5 +1,20 @@
|
|
||||||
# ACCOUNTSQT_INCLUDE_DIRS - The libaccounts-qt include directories
|
|
||||||
# ACCOUNTSQT_LIBRARIES - The libraries needed to use libaccounts-qt
|
|
||||||
+
|
|
||||||
+get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
||||||
+if(_realCurr STREQUAL _realOrig)
|
|
||||||
+ set(_IMPORT_PREFIX "/usr/lib/cmake/AccountsQt5")
|
|
||||||
+endif()
|
|
||||||
+unset(_realOrig)
|
|
||||||
+unset(_realCurr)
|
|
||||||
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
||||||
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
||||||
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
||||||
+if(_IMPORT_PREFIX STREQUAL "/")
|
|
||||||
+ set(_IMPORT_PREFIX "")
|
|
||||||
+endif()
|
|
||||||
+
|
|
||||||
+set(ACCOUNTSQT_LIBRARIES ${_IMPORT_PREFIX}/lib/lib$${TARGET}.so)
|
|
||||||
+set(ACCOUNTSQT_INCLUDE_DIRS ${_IMPORT_PREFIX}/include/$${TARGET}/)
|
|
||||||
|
|
||||||
-set(ACCOUNTSQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
|
|
||||||
-set(ACCOUNTSQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET}/)
|
|
||||||
\ No newline at end of file
|
|
||||||
+set(_IMPORT_PREFIX)
|
|
|
@ -1,26 +0,0 @@
|
||||||
# Template file for 'libaccounts-qt5'
|
|
||||||
pkgname=libaccounts-qt5
|
|
||||||
version=1.16
|
|
||||||
revision=2
|
|
||||||
build_style=qmake
|
|
||||||
configure_args="LIBDIR=/usr/lib"
|
|
||||||
hostmakedepends="pkg-config doxygen qt5-qmake qt5-host-tools"
|
|
||||||
makedepends="libaccounts-glib-devel qt5-devel"
|
|
||||||
short_desc="Client library to the accounts database, with a Qt5-based API"
|
|
||||||
maintainer="John Rowley <enterthevoid@codesector.co>"
|
|
||||||
license="LGPL-2.1-only"
|
|
||||||
homepage="https://gitlab.com/accounts-sso/libaccounts-qt"
|
|
||||||
distfiles="${homepage}/-/archive/VERSION_${version}/libaccounts-qt-VERSION_${version}.tar.gz"
|
|
||||||
checksum=3e527b151ee87e851b0f027214bda1353d8e48e10a5b54109f1e4b7d422a7de3
|
|
||||||
|
|
||||||
libaccounts-qt5-devel_package() {
|
|
||||||
short_desc+=" - development files"
|
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/include
|
|
||||||
vmove usr/lib/*.so
|
|
||||||
vmove usr/lib/pkgconfig
|
|
||||||
vmove usr/share/doc/accounts-qt
|
|
||||||
vmove usr/lib/cmake
|
|
||||||
}
|
|
||||||
}
|
|
1
srcpkgs/libaccounts-qt6
Symbolic link
1
srcpkgs/libaccounts-qt6
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
libaccounts-qt
|
1
srcpkgs/libaccounts-qt6-devel
Symbolic link
1
srcpkgs/libaccounts-qt6-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
libaccounts-qt
|
Loading…
Add table
Reference in a new issue