summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 74b2a9a0006f5113771c9ac8c2cb4ec10ee90e2e (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
27
28
29
30
31
32
33
34
35
# Maintainer: Victor Dmitriyev <mrvvitek@gmail.com>
# Contributor: arthur33 <sohieradrien@gmail.com>
pkgname='smartdeblur-git'
pkgver=20130530.24f4ab5
pkgrel=1
pkgdesc='A smart deblur program made by Y. Vladimir'
arch=('i686' 'x86_64')
url='http://yuzhikov.com/articles/BlurredImagesRestoration1.htm'
license=('GPLv3')
depends=('qt4' 'fftw')
makedepends=('git')
provides=('smartdeblur')

source=("${pkgname}::git+https://github.com/Y-Vladimir/SmartDeblur.git")
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"
    (
    git show --format='%cI' -q master | sed 's/T.*//g;s/-//g'
    echo .
    git rev-parse --short master
    ) | tr -d '\n'
}

build () {
	cd "${srcdir}/${pkgname}/src"
	qmake-qt4
	make
}
package() {
	cd "${srcdir}/${pkgname}/src"
	install -dm755 "${pkgdir}/usr/bin/"
	install -Dm755 SmartDeblur "${pkgdir}/usr/bin/"
}