summaryrefslogtreecommitdiff
path: root/extra/exiv2/PKGBUILD
blob: 60cdf8182ffa1cff0abd44357b7dfc9018e17e25 (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
36
37
38
39
40
41
42
#$Id: PKGBUILD 204753 2014-01-26 12:15:57Z andyrtr $
# Maintainer: tobias <tobias@arhlinux.org>

pkgname=exiv2
pkgver=0.24
pkgrel=1
pkgdesc="Exif and Iptc metadata manipulation library and tools"
arch=('i686' 'x86_64' 'mips64el')
url="http://exiv2.org"
license=('GPL2')
depends=('gcc-libs' 'zlib' 'expat')
makedepends=('cmake') # for doc: 'doxygen' 'graphviz' 'ttf-liberation' 'libxslt')
source=(http://www.exiv2.org/${pkgname}-${pkgver}.tar.gz)
        # for doc build maybe add from FC exiv2-0.24-doxygen_config.patch)
md5sums=('b8a23dc56a98ede85c00718a97a8d6fc')

prepare() {
  mkdir build
  # fix man pages install patch
  sed -i "s:man/man1:share/man/man1:" ${pkgbase}-${pkgver}/src/CMakeLists.txt
}
build() {
  cd build
  cmake ../${pkgbase}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DEXIV2_ENABLE_BUILD_PO:BOOL=ON \
    -DEXIV2_ENABLE_BUILD_SAMPLES=ON
  make
#  cd ../${pkgbase}-${pkgver}
#  make -j1 doc # needs to be fixed
}

#check() {
#  cd build
#  make tests # doesn't work for me not finding tests dir
#}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}