summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a427f7eca26e097f34c68d5c8204f344872993f5 (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: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=enblend-hg
pkgver=1517.8849e927f614
pkgrel=1
pkgdesc="Intelligent blend tool for overlapping pictures"
arch=('i686' 'x86_64')
license=('GPL')
conflicts=('enblend' 'enblend-enfuse')
provides=('enblend' 'enblend-enfuse')
url="http://enblend.sourceforge.net/"
depends=('boost-libs' 'gsl' 'lcms2' 'vigra')
makedepends=('mercurial' 'cmake' 'boost')
source=("$pkgname::hg+http://hg.code.sf.net/p/enblend/code")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  echo $(hg identify -n).$(hg identify -i)
}

build() {
  cd "$srcdir/$pkgname"

  sed -i 's|doc/enblend|share/doc/enblend|' CMakeLists.txt
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DENABLE_OPENMP=ON \
    .
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install
}