summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98b1f312040a4e20419766e91a15147e2ed9b8eb (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
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=libpano13-hg
pkgver=826.7339b1014e88
pkgrel=1
pkgdesc="Basic library to calculate panoramical pictures - core functions of the panotools"
url="http://panotools.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('libpng' 'libtiff')
makedepends=('mercurial' 'cmake')
provides=('libpano13')
conflicts=('libpano13')
options=(!libtool)
source=('hg+http://hg.code.sf.net/p/panotools/libpano13')
md5sums=('SKIP')

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

build() {
  cd "$srcdir/libpano13"

  cmake . \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib
  make
}

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