[arch-commits] Commit in dcraw/trunk (PKGBUILD dcraw.install)

Eric Bélanger eric at archlinux.org
Sat Feb 5 13:14:47 EST 2011


    Date: Saturday, February 5, 2011 @ 13:14:46
  Author: eric
Revision: 109077

upgpkg: dcraw 9.06-1
Upstream update, Changed source to use tarball release (close FS#22766), Added internationalization, Compiled with -O3 (close FS#20280), Fixed typo in .install file and removed post-upgrade message

Modified:
  dcraw/trunk/PKGBUILD
  dcraw/trunk/dcraw.install

---------------+
 PKGBUILD      |   58 ++++++++++++++++++++++++++++++--------------------------
 dcraw.install |    6 -----
 2 files changed, 33 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-02-05 16:56:16 UTC (rev 109076)
+++ PKGBUILD	2011-02-05 18:14:46 UTC (rev 109077)
@@ -2,44 +2,50 @@
 # Maintainer: tobias <tobias at archlinux.org>
 # Contributor: Tobias Kieslich <tobias at justdreams.de>
 
-# Note for rebuilders:
-# dcraw.c  is released as pure C file, not as a package with a changing version
-# number in the name. The name of the file to be downloaded is always the same!
-# So if you are a bad boy (Santa knows everything!) and build as root, this file
-# will be saved in /var/cache/pacman/src . Therefore, rebuilding a later version
-# likely will fail due to an MD5 error. If so, delete the files from the cache
-# to force a new download.
-
 pkgname=dcraw
-pkgver=1.437
+pkgver=9.06
 pkgrel=1
 pkgdesc="A command line based converter for digicams raw output"
 arch=('i686' 'x86_64')
 url="http://www.cybercom.net/~dcoffin/dcraw/"
 license=('custom')
 depends=('lcms')
-source=(http://www.cybercom.net/~dcoffin/${pkgname}/${pkgname}.c
-        http://www.cybercom.net/~dcoffin/${pkgname}/${pkgname}.1 
+source=(http://www.cybercom.net/~dcoffin/dcraw/archive/${pkgname}-${pkgver}.tar.gz
         license.txt)
-md5sums=('55814edbb3122dcad9def7f4b614227f'
-         '6ba2a797c4ad698589f83171d6b36396'
-         '110b4604a6dacd5537339c4082e9e12a')
-sha1sums=('5446bd5c7bcafb37b7fbea885666f3e8b9a4dbfe'
-          '0902f48378a2ae0a58f8c8d71560f7f15d21fb26'
-          '502c8f0ac7434d48f5dcb2eefe7599627cb69454')
+md5sums=('22921c24c697bbe43c1010f463176921' '110b4604a6dacd5537339c4082e9e12a')
+sha1sums=('7bd7b2283cf1ad1cb1591d0f69fd6831689b20b0' '502c8f0ac7434d48f5dcb2eefe7599627cb69454')
 
-
 build() {
-  cd "${srcdir}"
-  gcc -o dcraw ${CFLAGS} dcraw.c -lm -ljpeg -llcms
+  cd "${srcdir}/${pkgname}"
+  gcc ${CFLAGS} -O3 -o dcraw dcraw.c -lm -ljpeg -llcms -DLOCALEDIR=\"/usr/share/locale/\"
 }
 
 package() {
-  cd "${srcdir}"
-  install -Dm755  ${pkgname} "${pkgdir}"/usr/bin/${pkgname}
+  cd "${srcdir}/${pkgname}"
+  install -Dm755 dcraw "${pkgdir}"/usr/bin/dcraw
+  install -Dm644 dcraw.1 "${pkgdir}"/usr/share/man/man1/dcraw.1
   
-  # install a manpage, provided separately on authors homepage
-  install -Dm644 ${pkgname}.1 "${pkgdir}"/usr/share/man/man1/${pkgname}.1
-  
-  install -Dm644 license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
+  for langchar in \
+    fr.latin1 it.latin1 de.latin1 pt.latin1 es.latin1 sv.latin1 \
+    ca.latin1 da.latin1 cs.latin2 hu.latin2 pl.latin2 eo.latin3 ru.koi8-r \
+    zh_TW.big5 zh_CN.gb2312
+  do
+    lang=$(echo $langchar | cut -d. -f1)
+    char=$(echo $langchar | cut -d. -f2-)
+    mkdir -p -m 755 "${pkgdir}"/usr/share/man/$lang/man1
+    iconv -f utf-8 -t $char dcraw_$lang.1 > "${pkgdir}"/usr/share/man/$lang/man1/dcraw.1
+    mkdir -p -m 755 "${pkgdir}"/usr/share/man/$lang.UTF-8/man1
+    cp dcraw_$lang.1 "${pkgdir}"/usr/share/man/$lang.UTF-8/man1/dcraw.1
+    mkdir -p -m 755 "${pkgdir}"/usr/share/locale/$lang/LC_MESSAGES
+    msgfmt -o "${pkgdir}"/usr/share/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po
+  done
+
+# dcraw_nl.1 is missing
+  langchar=nl.latin1
+  lang=$(echo $langchar | cut -d. -f1)
+  char=$(echo $langchar | cut -d. -f2-)
+  mkdir -p -m 755 "${pkgdir}"/usr/share/locale/$lang/LC_MESSAGES
+  msgfmt -o "${pkgdir}"/usr/share/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po
+
+  install -Dm644 "${srcdir}/license.txt" "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
 }

Modified: dcraw.install
===================================================================
--- dcraw.install	2011-02-05 16:56:16 UTC (rev 109076)
+++ dcraw.install	2011-02-05 18:14:46 UTC (rev 109077)
@@ -1,7 +1,7 @@
 post_install() {
   cat << EOF
 
-NOTE for drcaw:
+NOTE for dcraw:
 ----
   ==> dcraw provides the simple commandline tools for raw conversion. If you
   ==> are looking for a more sophisticated way consider gimp-ufraw, which
@@ -11,7 +11,3 @@
 
 EOF
 }
-
-post_upgrade() {
-  post_install $1
-}



More information about the arch-commits mailing list