diff options
author | GoliathLabs | 2020-06-11 19:32:23 +0200 |
---|---|---|
committer | GoliathLabs | 2020-06-11 19:32:23 +0200 |
commit | 95de56442ac1169f99628b10de7134f913438cfe (patch) | |
tree | 6d80241012debdfb9e82e8d7cc5ffc201ce0925e | |
parent | f20a8b42d7680323688eb03e16edd6dac9b36baa (diff) | |
download | aur-95de56442ac1169f99628b10de7134f913438cfe.tar.gz |
Updated: PKGBUILD
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 17 insertions, 15 deletions
@@ -1,10 +1,11 @@ pkgbase = qt-heif-image-plugin pkgdesc = Enables HEIF support in Qt applications - pkgver = 0.3.3.r4.671166e - pkgrel = 3 + pkgver = 0.3.3.r4.g671166e + pkgrel = 4 url = https://github.com/jakar/qt-heif-image-plugin arch = x86_64 license = LGPL + makedepends = cmake makedepends = qt5-base depends = libheif provides = qt5-heif @@ -3,14 +3,14 @@ pkgname=('qt5-heif-git') pkgbase=qt-heif-image-plugin -pkgver=0.3.3.r4.671166e -pkgrel=3 +pkgver=0.3.3.r4.g671166e +pkgrel=4 pkgdesc="Enables HEIF support in Qt applications" arch=('x86_64') url="https://github.com/jakar/qt-heif-image-plugin" license=('LGPL') depends=('libheif') -makedepends=('qt5-base') +makedepends=('cmake' 'qt5-base') provides=('qt5-heif') conflicts=('qt5-heif') source=('git+https://github.com/jakar/qt-heif-image-plugin.git' 'imagethumbnail-heif.desktop') @@ -18,22 +18,23 @@ sha256sums=('SKIP' 'e2810903300af8ff1689112faf6aa062c6112f387b0a643bf35082cd5ab8d14c') pkgver() { - cd "$srcdir/$pkgbase" - echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')" + cd "$srcdir/$pkgbase" + # cutting off 'v' prefix that presents in the git tag + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - mkdir -p build-qt5 - cd build-qt5 - cmake "$srcdir/$pkgbase" -DCMAKE_INSTALL_PREFIX="/usr" -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 - make + mkdir -p build-qt5 + cd build-qt5 + cmake "$srcdir/$pkgbase" -DCMAKE_INSTALL_PREFIX="/usr" -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 + make } package_qt5-heif-git() { - depends+=('qt5-base') + depends+=('qt5-base') - cd build-qt5 - make DESTDIR=$pkgdir install + cd build-qt5 + make DESTDIR=$pkgdir install - install -Dm755 "${srcdir}/imagethumbnail-heif.desktop" "${pkgdir}/usr/share/kservices5/imagethumbnail-heif.desktop" + install -Dm755 "${srcdir}/imagethumbnail-heif.desktop" "${pkgdir}/usr/share/kservices5/imagethumbnail-heif.desktop" } |