octoxbps: update to 0.4.0

This commit is contained in:
toadwastoast 2024-10-31 21:54:44 -03:00 committed by classabbyamp
parent 1fb2749ba5
commit 1cdc77150d
1 changed files with 11 additions and 15 deletions

View File

@ -1,31 +1,27 @@
# Template file for 'octoxbps' # Template file for 'octoxbps'
pkgname=octoxbps pkgname=octoxbps
version=0.3.3 version=0.4.0
revision=1 revision=1
build_style=qmake build_style=qmake
hostmakedepends="qt5-qmake pkg-config qt5-host-tools" build_helper=qmake6
makedepends="qt5-declarative-devel qtermwidget-devel" hostmakedepends="pkg-config qt6-tools qt6-base"
depends="curl" makedepends=" qt6-declarative-devel qtermwidget-qt6-devel qt6-qt5compat-devel"
depends="curl qt-sudo"
short_desc="Qt-based XBPS front-end" short_desc="Qt-based XBPS front-end"
maintainer="beefcurtains <beefcurtains@voidlinux.org>" maintainer="beefcurtains <beefcurtains@voidlinux.org>"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
homepage="https://tintaescura.com/projects/octopi/" homepage="https://tintaescura.com/projects/octoxbps/"
changelog="https://raw.githubusercontent.com/aarnt/octoxbps/master/CHANGELOG" changelog="https://raw.githubusercontent.com/aarnt/octoxbps/master/CHANGELOG"
distfiles="https://github.com/aarnt/octoxbps/archive/v${version}.tar.gz" distfiles="https://github.com/aarnt/octoxbps/archive/v${version}.tar.gz"
checksum=bf00fca7416b9ecad5e8c6e85d8e3215e8c4ef73c23a2b2c3cbe6773491ff4d5 checksum=9c01d6a97511e3cecea32d094482e14b40ff3e1ede6576eb45a7e75dd8f39920
post_configure() { post_configure() {
sed -i 's/usr\/local/usr/g' src/constants.h
local qmake_args local qmake_args
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
qmake_args="-qtconf ${wrksrc}/qt.conf" qmake_args="-qtconf ${wrksrc}/qt.conf"
fi fi
cd ${wrksrc}/notifier && qmake-qt5 ${configure_args} \ cd ${wrksrc}/notifier && qmake-qt6 ${configure_args} \
QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_LINK_C=$CC \
QMAKE_CFLAGS="${CFLAGS}" \
QMAKE_CXXFLAGS="${CXXFLAGS}" \
QMAKE_LFLAGS="${LDFLAGS}" \
${qmake_args}
cd ${wrksrc}/sudo && qmake-qt5 ${configure_args} \
QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_LINK_C=$CC \ QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_LINK_C=$CC \
QMAKE_CFLAGS="${CFLAGS}" \ QMAKE_CFLAGS="${CFLAGS}" \
QMAKE_CXXFLAGS="${CXXFLAGS}" \ QMAKE_CXXFLAGS="${CXXFLAGS}" \
@ -34,13 +30,13 @@ post_configure() {
} }
do_build() { do_build() {
for _dir in ${wrksrc} ${wrksrc}/notifier ${wrksrc}/sudo; do for _dir in ${wrksrc} ${wrksrc}/notifier; do
cd $_dir && make ${makejobs} ${make_build_args} ${make_build_target} CC="$CC" CXX="$CXX" LINK="$CXX" cd $_dir && make ${makejobs} ${make_build_args} ${make_build_target} CC="$CC" CXX="$CXX" LINK="$CXX"
done done
} }
do_install() { do_install() {
for _dir in ${wrksrc} ${wrksrc}/notifier ${wrksrc}/sudo; do for _dir in ${wrksrc} ${wrksrc}/notifier; do
cd $_dir && make INSTALL_ROOT=${DESTDIR} install cd $_dir && make INSTALL_ROOT=${DESTDIR} install
done done
} }