summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2018-07-02 12:48:54 +0200
committerhaawda2018-07-02 12:48:54 +0200
commit2d3917354a4371710ef22efd40a9b33165cf4261 (patch)
tree88b7d7a916ed275a0a6fabf737a0e8c03ac50b0f
parent781d85ec2a5a4e38e866c9dc82df475828b9112f (diff)
downloadaur-2d3917354a4371710ef22efd40a9b33165cf4261.tar.gz
split PKGBUILD, ktikz added
-rw-r--r--.SRCINFO31
-rw-r--r--PKGBUILD46
2 files changed, 62 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 99324a9570c..8965847678c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,41 @@
pkgbase = qtikz-git
pkgdesc = Small application helping you to create TikZ diagrams
- pkgver = r317.37ae35f
+ pkgver = r318.207af3e
pkgrel = 1
url = https://github.com/fhackenberger/ktikz
arch = i686
arch = x86_64
license = GPL
makedepends = git
+ makedepends = cmake
+ makedepends = extra-cmake-modules
+ makedepends = qt5-base
makedepends = qt5-tools
makedepends = texlive-core
- depends = poppler-qt5
- provides = qtikz
- conflicts = qtikz
- options = !makeflags
+ makedepends = kdoctools
+ makedepends = kxmlgui
+ makedepends = ktexteditor
+ makedepends = kparts
+ makedepends = kiconthemes
+ makedepends = poppler
+ makedepends = poppler-qt5
+ makedepends = kdelibs4support
source = qtikz::git+https://github.com/fhackenberger/ktikz
md5sums = SKIP
pkgname = qtikz-git
+ pkgdesc = Small application helping you to create TikZ diagrams – Qt version
+ depends = poppler-qt5
+ depends = hicolor-icon-theme
+ provides = qtikz
+ conflicts = qtikz
+
+pkgname = ktikz-git
+ pkgdesc = Small application helping you to create TikZ diagrams – KDE version
+ depends =
+ depends = kparts
+ depends = poppler-qt5
+ depends = hicolor-icon-theme
+ provides = ktikz
+ conflicts = ktikz
diff --git a/PKGBUILD b/PKGBUILD
index 0c392355bcb..e99aa1b6e89 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,18 @@
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+# Contributor: Bruno Pagani <archange@archlinux.org>
-pkgname=qtikz-git
-pkgver=r317.37ae35f
+pkgname=('qtikz-git' 'ktikz-git')
+pkgver=r318.207af3e
pkgrel=1
pkgdesc="Small application helping you to create TikZ diagrams"
arch=('i686' 'x86_64')
url="https://github.com/fhackenberger/ktikz"
license=('GPL')
-depends=('poppler-qt5')
-makedepends=('git' 'qt5-tools' 'texlive-core')
-provides=('qtikz')
-conflicts=('qtikz')
+makedepends=('git' 'cmake' 'extra-cmake-modules' 'qt5-base' 'qt5-tools'
+ 'texlive-core' 'kdoctools' 'kxmlgui' 'ktexteditor' 'kparts'
+ 'kiconthemes' 'poppler' 'poppler-qt5' 'kdelibs4support')
source=("qtikz::git+https://github.com/fhackenberger/ktikz")
md5sums=('SKIP')
-options=('!makeflags')
pkgver() {
cd "${pkgname%-git}"
@@ -22,13 +21,40 @@ pkgver() {
build() {
cd "${pkgname%-git}"
- qmake qtikz.pro
+ [[ -d build_q ]] || mkdir build_q
+ [[ -d build_k ]] || mkdir build_k
+ cd build_q
+ qmake ../qtikz.pro
+ make
+ cd ../build_k
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DBUILD_TYPE=None
make
}
-package() {
- cd "${pkgname%-git}"
+package_qtikz-git() {
+ pkgdesc+=" – Qt version"
+ provides=('qtikz')
+ conflicts=('qtikz')
+ depends=('poppler-qt5' 'hicolor-icon-theme')
+
+ cd "${pkgname%-git}"/build_q
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
}
+package_ktikz-git() {
+ provides=('ktikz')
+ conflicts=('ktikz')
+ pkgdesc+=" – KDE version"
+ depends+=('kparts' 'poppler-qt5' 'hicolor-icon-theme')
+ cd "${pkgbase%-git}"/build_k
+ make DESTDIR="${pkgdir}" install
+}