diff options
author | haawda | 2018-07-02 12:48:54 +0200 |
---|---|---|
committer | haawda | 2018-07-02 12:48:54 +0200 |
commit | 2d3917354a4371710ef22efd40a9b33165cf4261 (patch) | |
tree | 88b7d7a916ed275a0a6fabf737a0e8c03ac50b0f /PKGBUILD | |
parent | 781d85ec2a5a4e38e866c9dc82df475828b9112f (diff) | |
download | aur-2d3917354a4371710ef22efd40a9b33165cf4261.tar.gz |
split PKGBUILD, ktikz added
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 36 insertions, 10 deletions
@@ -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 +} |