updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / img2djvu-git / PKGBUILD
blob8af97badae4a35153bc6a5713680e49d06d8f629
1 # Maintainer: Anton Larionov <diffident dot cat at gmail dot com>
3 pkgname=img2djvu-git
4 pkgver=20110720
5 pkgrel=2
6 pkgdesc="Single-pass DjVu encoder based on DjVu Libre and ImageMagick"
7 arch=('any')
8 url="https://github.com/ashipunov/img2djvu"
9 license=('custom:Public domain')
10 depends=('bash' 'djvulibre' 'imagemagick')
11 makedepends=('git')
13 _gitroot="git://github.com/ashipunov/img2djvu.git"
14 _gitname="img2djvu"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
35 package() {
36   install -D -m755 "${srcdir}/${_gitname}-build/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
38   install -dm755 "${pkgdir}/usr/share/doc/${_gitname}"
39   cd "${srcdir}/${_gitname}-build"
40   install -D -m644 NEWS README TODO "${pkgdir}/usr/share/doc/${_gitname}"
41
43 # vim:set ts=2 sw=2 et: