[arch-commits] Commit in ktikz/repos (community-x86_64 community-x86_64/PKGBUILD)

Bruno Pagani archange at archlinux.org
Sun Jul 1 21:23:38 UTC 2018


    Date: Sunday, July 1, 2018 @ 21:23:38
  Author: archange
Revision: 349433

archrelease: copy trunk to community-x86_64

Added:
  ktikz/repos/community-x86_64/
  ktikz/repos/community-x86_64/PKGBUILD
    (from rev 349432, ktikz/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: ktikz/repos/community-x86_64/PKGBUILD (from rev 349432, ktikz/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-07-01 21:23:38 UTC (rev 349433)
@@ -0,0 +1,52 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgbase=ktikz
+pkgname=('ktikz' 'qtikz')
+pkgver=0.12
+pkgrel=1
+pkgdesc="A small application helping you to create TikZ diagrams (from the LaTeX pgf package)"
+arch=('x86_64')
+url="https://github.com/fhackenberger/ktikz"
+license=('GPL')
+depends=('poppler-qt5')
+makedepends=('cmake' 'extra-cmake-modules' 'qt5-base' 'qt5-tools'
+             'kdoctools' 'kxmlgui' 'ktexteditor' 'kparts' 'kiconthemes'
+             'poppler' 'poppler-qt5' 'kdelibs4support')
+source=(${pkgbase}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz")
+sha256sums=('ef15fe70f4e057eab74ed738886f8e4a53d5b1bcdf1ee329930bf06e22f56e9d')
+
+prepare() {
+    mkdir ${pkgbase}-${pkgver}/{build,buildqt}
+}
+
+build() {
+    # Build ktikz
+    cd ${pkgbase}-${pkgver}/build
+    cmake .. \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE=None
+    make
+    # Build qtikz
+    cd ../buildqt
+    qmake ../qtikz.pro
+    make
+}
+
+package_ktikz() {
+    pkgdesc+=" – KDE version"
+    depends+=('kparts')
+    cd ${pkgbase}-${pkgver}/build
+    make DESTDIR="${pkgdir}" install
+}
+
+package_qtikz() {
+    pkgdesc+=" – Qt version"
+    cd ${pkgbase}-${pkgver}/buildqt
+    make INSTALL_ROOT="${pkgdir}" install
+    # Fix icons path
+    sed -i 's:Icon=/usr/share/qtikz/qtikz-128.png:Icon=qtikz:' "${pkgdir}"/usr/share/applications/qtikz.desktop
+    rm "${pkgdir}"/usr/share/qtikz/qtikz-128.png
+    install -Dm644 ../app/icons/qtikz.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/qtikz.svg
+    install -Dm644 ../app/icons/qtikz-22.png "${pkgdir}"/usr/share/icons/hicolor/22x22/apps/qtikz.png
+    install -Dm644 ../app/icons/qtikz-128.png "${pkgdir}"/usr/share/icons/hicolor/128x128/apps/qtikz.png
+}



More information about the arch-commits mailing list