Package Details: octopi-kde-git r1410.b7fa1be-1

Git Clone URL: https://aur.archlinux.org/octopi-kde-git.git (read-only)
Package Base: octopi-kde-git
Description: A powerful Pacman frontend using Qt libs (git version for KDE)
Upstream URL: https://github.com/aarnt/octopi
Licenses: GPL2
Conflicts: octopi, octopi-cachecleaner, octopi-git, octopi-notifier-frameworks, octopi-notifier-noknotify, octopi-notifier-qt5, octopi-pacmanhelper, octopi-repoeditor
Provides: octopi, octopi-cachecleaner, octopi-git, octopi-notifier-frameworks, octopi-notifier-noknotify, octopi-notifier-qt5, octopi-pacmanhelper, octopi-repoeditor
Submitter: kikadf
Maintainer: buzo
Last Packager: buzo
Votes: 5
Popularity: 1.426194
First Submitted: 2018-02-26 18:47
Last Updated: 2018-09-25 13:46

Dependencies (10)

Required by (1)

Sources (3)

Latest Comments

egrupled commented on 2018-07-12 14:42

@kikadf: I guess something was off.Try with this PKGBUILD. I tested:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
CXXLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"

and

CFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt"
CXXLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt"

in a clean chroot and on working system an everything was ok.

# Maintainer: kikadf <kikadf.01@gmail.com>


pkgname=octopi-kde-git
_pkgver=0.9.0
pkgver=0.9.0.1408
pkgrel=1
pkgdesc="This is Octopi, a powerful Pacman frontend using Qt libs (git version for KDE)"
url="https://github.com/aarnt/octopi"
arch=('x86_64')
license=('GPL2')
depends=('pkgfile' 'knotifications' 'alpm_octopi_utils' 'kdesu' 'pacman-contrib')
optdepends=('yaourt: for AUR support'
            'pacaur: for AUR support'
            'trizen: for AUR support'
            'pacmanlogviewer: to view pacman log files')
provides=('octopi' 'octopi-git' 'octopi-notifier-frameworks' 'octopi-notifier-qt5'
          'octopi-notifier-noknotify' 'octopi-repoeditor' 'octopi-cachecleaner'
          'octopi-pacmanhelper')
conflicts=('octopi' 'octopi-git' 'octopi-notifier-frameworks' 'octopi-notifier-qt5'
           'octopi-notifier-noknotify' 'octopi-repoeditor' 'octopi-cachecleaner'
           'octopi-pacmanhelper')
makedepends=('git')
source=("${pkgname}::git+https://github.com/aarnt/octopi.git"
        "icons::git+https://gitlab.com/kikadf/octopicons.git"
        "https://code.chakralinux.org/packages/desktop/raw/master/octopi/0001-remove-qtermwidget.patch")
md5sums=('SKIP'
         'SKIP'
         '5b56cd3d5d6e25a62c94055b2384aff3')

pkgver() {
    cd ${pkgname}
    printf ${_pkgver}".%s" "$(git rev-list --count HEAD)"
}

prepare() {
    cd ${pkgname}

    # disable lxqt qtermwidget
    patch -Np1 -i ../0001-remove-qtermwidget.patch
    rm -rfv src/termwidget.{cpp,h}

    # enable the kstatus switch to build with Plasma/knotifications support
    sed -e "s|DEFINES += ALPM_BACKEND #KSTATUS|DEFINES += ALPM_BACKEND KSTATUS|" -i notifier/octopi-notifier/octopi-notifier.pro

    # set version
    sed -e "s|0.9.0 (dev)|${_pkgver}.$(git rev-list --count HEAD)-${pkgrel} ($(git rev-parse --short HEAD))|g" -i src/strconstants.cpp

    cp resources/images/octopi_green.png resources/images/octopi.png
}

build() {
    cd ${pkgname}
    export QTERMWIDGET=off
    msg "Building octopi..."
    qmake-qt5 QMAKE_CFLAGS_RELEASE="${CFLAGS}" QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" QMAKE_LFLAGS_RELEASE="${LDFLAGS}" octopi.pro
    make

    cd notifier/pacmanhelper
    msg "Building pacmanhelper..."
    qmake-qt5 QMAKE_CFLAGS_RELEASE="${CFLAGS}" QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" QMAKE_LFLAGS_RELEASE="${LDFLAGS}" pacmanhelper.pro
    make

    cd ../octopi-notifier
    msg "Building octopi-notifier..."
    qmake-qt5 QMAKE_CFLAGS_RELEASE="${CFLAGS}" QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" QMAKE_LFLAGS_RELEASE="${LDFLAGS}" octopi-notifier.pro
    make

    cd ../../repoeditor
    msg "Building octopi-repoeditor..."
    qmake-qt5 QMAKE_CFLAGS_RELEASE="${CFLAGS}" QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" QMAKE_LFLAGS_RELEASE="${LDFLAGS}" octopi-repoeditor.pro
    make

    cd ../cachecleaner
    msg "Building octopi-cachecleaner..."
    qmake-qt5 QMAKE_CFLAGS_RELEASE="${CFLAGS}" QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" QMAKE_LFLAGS_RELEASE="${LDFLAGS}" octopi-cachecleaner.pro
    make
}

package() {
    cd ${pkgname}
    make INSTALL_ROOT=${pkgdir} install

    cd notifier/pacmanhelper
    make INSTALL_ROOT=${pkgdir} install
    cd ../..

    cd notifier/octopi-notifier
    make INSTALL_ROOT=${pkgdir} install
    cd ../..

    cd repoeditor
    make INSTALL_ROOT=${pkgdir} install
    cd ..

    cd cachecleaner
    make INSTALL_ROOT=${pkgdir} install
    cd ..

    #speedup files
    install -D -m755 "speedup/speedup-octopi.sh" "${pkgdir}/usr/bin/speedup-octopi.sh"
    install -D -m644 "speedup/octopi.service" "${pkgdir}/usr/lib/systemd/system/octopi.service"

    # Add some icons to customize notifier
    mkdir -p "${pkgdir}/usr/share/octopi/icons/"
    cp ../icons/*.png "${pkgdir}/usr/share/octopi/icons/"
}

kikadf commented on 2018-07-11 10:10

@egrupled, I tried, but didn't work with default makepkg.conf: ***Unknown option -mtune=generic

egrupled commented on 2018-07-10 16:23

@kikadf can you add qmake environment variables to honor custom buildflags?

To do this adjust every qmake-qt5 command like below:

qmake-qt5 QMAKE_CFLAGS_RELEASE="${CFLAGS}" QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" QMAKE_LFLAGS_RELEASE="${LDFLAGS}" octopi.pro

After that it will honor use customized buildflags like CXXFLAGS="-march=native" in /etc/makepkg.conf

kikadf commented on 2018-06-13 14:49

@LoveChocoCat: fixed, thx

LoveChocoCat commented on 2018-06-13 10:33

can you resolve the problem with octopi icon repo when i search it in google it give error 404 from github

kikadf commented on 2018-05-29 15:16

Hm, for resolve the pacman 5.1 issue (missing libalpm.so.10), I rebuilt alpm_octopi_utils with the new pacman-5.1, then I rebuilt octopi with the new alpm_octopi_utils. Works.

kikadf commented on 2018-05-28 17:53

@HeinzDo56: Qt-5.11 build error fixed with solution of demmm [1]

[1] https://github.com/aarnt/octopi/issues/327

Anonymous comment on 2018-05-28 10:19

Hi.

I can't build this with Qt 5.11. I got this error-massage: /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -Ibuild -isystem /usr/include/libdrm -Ibuild -I/usr/lib/qt/mkspecs/linux-g++ -o build/mainwindow_refresh.o src/mainwindow_refresh.cpp src/transactiondialog.cpp: In Elementfunktion »void TransactionDialog::setDetailedText(QString)«: src/transactiondialog.cpp:78:63: Fehler: falsche Verwendung des unvollständigen Typs »class QRegularExpression« if (detailedtext.contains(QRegularExpression("pacman-[0-9]+"))) ^ In file included from /usr/include/qt/QtCore/qhashfunctions.h:44, from /usr/include/qt/QtCore/qlist.h:47, from /usr/include/qt/QtCore/qvariant.h:45, from /usr/include/qt/QtCore/QVariant:1, from build/ui_transactiondialog.h:12, from src/transactiondialog.h:23, from src/transactiondialog.cpp:20: /usr/include/qt/QtCore/qstring.h:83:7: Anmerkung: Vorwärtsdeklaration von »class QRegularExpression« class QRegularExpression;