diff options
author | root <root@rshg047.dnsready.net> | 2011-05-28 22:47:00 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-28 22:47:00 +0000 |
commit | a0a7a3e16a1399233b436e64dba17a6cca315393 (patch) | |
tree | 1c5528cb95a0d908a4699db32bb7b999ee53ecad /extra/dcraw | |
parent | 4d22176132f4a830ab0cc510dabbc9f8c1c362ea (diff) |
Sat May 28 22:47:00 UTC 2011
Diffstat (limited to 'extra/dcraw')
-rw-r--r-- | extra/dcraw/PKGBUILD | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/extra/dcraw/PKGBUILD b/extra/dcraw/PKGBUILD index 2334cc49b..eb35b2e1a 100644 --- a/extra/dcraw/PKGBUILD +++ b/extra/dcraw/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 109077 2011-02-05 18:14:46Z eric $ +# $Id: PKGBUILD 125668 2011-05-27 23:18:08Z eric $ # Maintainer: tobias <tobias@archlinux.org> # Contributor: Tobias Kieslich <tobias@justdreams.de> pkgname=dcraw -pkgver=9.06 +pkgver=9.08 pkgrel=1 pkgdesc="A command line based converter for digicams raw output" arch=('i686' 'x86_64') @@ -12,8 +12,10 @@ license=('custom') depends=('lcms') source=(http://www.cybercom.net/~dcoffin/dcraw/archive/${pkgname}-${pkgver}.tar.gz license.txt) -md5sums=('22921c24c697bbe43c1010f463176921' '110b4604a6dacd5537339c4082e9e12a') -sha1sums=('7bd7b2283cf1ad1cb1591d0f69fd6831689b20b0' '502c8f0ac7434d48f5dcb2eefe7599627cb69454') +md5sums=('eb1d365c27495a513c0768b2f696ba66' + '110b4604a6dacd5537339c4082e9e12a') +sha1sums=('1282402201ca48f922d9167ad078aa58cb18593e' + '502c8f0ac7434d48f5dcb2eefe7599627cb69454') build() { cd "${srcdir}/${pkgname}" @@ -26,26 +28,21 @@ package() { install -Dm644 dcraw.1 "${pkgdir}"/usr/share/man/man1/dcraw.1 for langchar in \ - fr.latin1 it.latin1 de.latin1 pt.latin1 es.latin1 sv.latin1 \ + fr.latin1 it.latin1 de.latin1 pt.latin1 es.latin1 nl.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 + if [ -f dcraw_${lang}.1 ]; then + 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 + fi 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 } |