[arch-commits] Commit in exiv2/trunk (PKGBUILD)

Andreas Radke andyrtr at nymeria.archlinux.org
Fri Jan 24 10:31:38 UTC 2014


    Date: Friday, January 24, 2014 @ 11:31:38
  Author: andyrtr
Revision: 204614

upgpkg: exiv2 0.24-1

upstream update 0.24, use cmake build system, doc build and tests fails for me - need investigation

Modified:
  exiv2/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-24 10:08:11 UTC (rev 204613)
+++ PKGBUILD	2014-01-24 10:31:38 UTC (rev 204614)
@@ -2,23 +2,41 @@
 # Maintainer: tobias <tobias at arhlinux.org>
 
 pkgname=exiv2
-pkgver=0.23
-pkgrel=2
+pkgver=0.24
+pkgrel=1
 pkgdesc="Exif and Iptc metadata manipulation library and tools"
 arch=('i686' 'x86_64')
 url="http://exiv2.org"
-license=('GPL')
+license=('GPL2')
 depends=('gcc-libs' 'zlib' 'expat')
-source=("http://www.exiv2.org/${pkgname}-${pkgver}.tar.gz")
-sha1sums=('5f342bf642477526f41add11d6ee7787cdcd639f')
+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 "${srcdir}/${pkgname}-${pkgver}"
-  CPPFLAGS="-D_FILE_OFFSET_BITS=64" ./configure --prefix=/usr
+  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 "${srcdir}/${pkgname}-${pkgver}"
+  cd build
   make DESTDIR="${pkgdir}" install
 }




More information about the arch-commits mailing list