[Frugalware-git] frugalware-current: dcraw-9.11-1-i686 * version bump

Devil505 devil505linux at gmail.com
Sat Nov 5 18:10:22 CET 2011


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=2818bed6141908ffa421c9be7b2ef128f15eb0ca

commit 2818bed6141908ffa421c9be7b2ef128f15eb0ca
Author: Devil505 <devil505linux at gmail.com>
Date:   Sat Nov 5 18:09:19 2011 +0100

dcraw-9.11-1-i686
* version bump

diff --git a/source/apps-extra/dcraw/FrugalBuild b/source/apps-extra/dcraw/FrugalBuild
index dcb46ee..af8e508 100644
--- a/source/apps-extra/dcraw/FrugalBuild
+++ b/source/apps-extra/dcraw/FrugalBuild
@@ -2,30 +2,39 @@
# Maintainer: Priyank Gosalia <priyankmg at gmail.com>

pkgname=dcraw
-pkgver=9.08
+pkgver=9.11
pkgrel=1
pkgdesc="A command line based converter for raw digital photos."
url="http://www.cybercom.net/~dcoffin/dcraw/"
-makedepends=('gzip')
-depends=('libjpeg>=8a' 'lcms')
+depends=('libjpeg>=8a' 'lcms' 'jasper')
groups=('apps-extra')
archs=('i686' 'x86_64' 'ppc')
up2date="lynx -dump http://www.cybercom.net/~dcoffin/dcraw/dcraw.c | grep -m1 VERSION | sed 's/.*N \"\(.*\).\"*/\1/'"
-source=($url/$pkgname.{c,1})
-options=('noversrc')
-sha1sums=('a7d2340097184cb0e5d82da1c69ec76c3f224c9a' \
-          '0902f48378a2ae0a58f8c8d71560f7f15d21fb26')
+source=(http://www.cybercom.net/~dcoffin/dcraw/archive/${pkgname}-${pkgver}.tar.gz)
+sha1sums=('79dc403d6b629df6dac3218ad33dc89c4a86c234')

-build()
-{
-	cd $Fsrcdir || Fdie
-	Fmessage "Compiling dcraw..."
-	Fmessage "gcc -o dcraw ${CFLAGS} dcraw.c -lm -ljpeg -llcms"
-	gcc -o dcraw ${CFLAGS} dcraw.c -lm -ljpeg -llcms || Fdie
-	Finstall 755 dcraw usr/bin/dcraw
+build() {
+  Fcd $pkgname
+  gcc ${CFLAGS} -O3 -o dcraw dcraw.c \
+    -Wall -Wno-unused-result -Wno-array-bounds \
+    -lm -ljasper -ljpeg -llcms -DLOCALEDIR=\"/usr/share/locale/\"
+  Fexerel dcraw usr/bin/dcraw
+  Fmanrel dcraw.1

-	# Install the manpage
-	Fman dcraw.1
+  for langchar in \
+    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-)
+    if [ -f dcraw_${lang}.1 ]; then
+      mkdir -p -m 755 $Fdestdir/usr/share/man/$lang/man1
+      iconv -f utf-8 -t $char dcraw_$lang.1 > $Fdestdir/usr/share/man/$lang/man1/dcraw.1
+      mkdir -p -m 755 $Fdestdir/usr/share/man/$lang.UTF-8/man1
+      cp dcraw_$lang.1 $Fdestdir/usr/share/man/$lang.UTF-8/man1/dcraw.1
+    fi
+    mkdir -p -m 755 $Fdestdir/usr/share/locale/$lang/LC_MESSAGES
+    msgfmt -o $Fdestdir/usr/share/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po
+  done
}
-
-# optimization OK


More information about the Frugalware-git mailing list