summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 413bc2dcc2ffb17233d9b257e19cbfc163a883bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Pieter Lenaerts <pieter dot aj dot lenaerts gmail>

pkgname=jpegdupes-git
_orig_pkg_dir=imgdupes
pkgver=1.2.r25.g75eb5d7
pkgrel=1
provides=('jpegdupes')
conflicts=('jpegdupes' 'imgdupes' 'imgdupes-git')
pkgdesc='Checks for duplicated images in a directory tree, ignoring metadata'
arch=('any')
url='https://github.com/jesjimher/imgdupes'
depends=('libgexiv2' 'python-texttable' 'python-jpegtran-cffi' 'python-pillow' 'python-gobject')
makedepends=('git')
license=('GPL3')
source=("git+https://github.com/jesjimher/imgdupes.git")
sha512sums=('SKIP')

pkgver() {
	cd "$_orig_pkg_dir"
	git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	install -Dm755 "${srcdir}/${_orig_pkg_dir}/jpegdupes/jpegdupes.py" "${pkgdir}/usr/bin/jpegdupes"
	install -Dm644 "${srcdir}/${_orig_pkg_dir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}