diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ebad55cd4e49 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Martin Sandsmark <martin.sandsmark@kde.org> + +pkgname=diffimg-git +pkgver=r51.58bc07f +pkgrel=1 +pkgdesc='Qt based GUI to diff images' +arch=('i686' 'x86_64') +url='https://github.com/sandsmark/diffimg' +license=('GPL') +depends=('qt5-base' 'qwt' 'opencv') +makedepends=('git') +conflicts=(diffimg) +provides=(diffimg) +source=('git://github.com/sandsmark/diffimg.git') +md5sums=('SKIP') + +pkgver() { + cd diffimg + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd diffimg + qmake + make +} + +package() { + cd diffimg + make INSTALL_ROOT="$pkgdir" install + mv "$pkgdir"/usr/bin/diffimg "$pkgdir"/usr/bin/diffimg-qt + mv "$pkgdir"/usr/share/man/man1/diffimg.1.gz "$pkgdir"/usr/share/man/man1/diffimg-qt.1.gz +} |