[arch-commits] Commit in dcraw/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat May 16 15:17:16 UTC 2020


    Date: Saturday, May 16, 2020 @ 15:17:16
  Author: foutrelis
Revision: 384787

archrelease: copy trunk to staging-x86_64

Added:
  dcraw/repos/staging-x86_64/
  dcraw/repos/staging-x86_64/PKGBUILD
    (from rev 384786, dcraw/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: dcraw/repos/staging-x86_64/PKGBUILD (from rev 384786, dcraw/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-16 15:17:16 UTC (rev 384787)
@@ -0,0 +1,41 @@
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: tobias <tobias at archlinux.org>
+# Contributor: Tobias Kieslich <tobias at justdreams.de>
+
+pkgname=dcraw
+pkgver=9.28.0
+pkgrel=2
+pkgdesc='Decodes any raw image from any digital camera'
+url='https://www.dechifro.org/dcraw/'
+arch=('x86_64')
+license=('custom')
+depends=('lcms2' 'jasper')
+source=("https://www.dechifro.org/dcraw/archive/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('2890c3da2642cd44c5f3bfed2c9b2c1db83da5cec09cc17e0fa72e17541fb4b9')
+
+build() {
+	cd "${srcdir}/${pkgname}"
+	gcc ${CFLAGS} ${LDFLAGS} \
+		-o dcraw dcraw.c \
+		-lm -ljasper -ljpeg -llcms2 \
+		-DLOCALEDIR=\"/usr/share/locale/\"
+}
+
+package() {
+	cd "${srcdir}/${pkgname}"
+
+	install -Dm755 dcraw "${pkgdir}"/usr/bin/dcraw
+	install -Dm644 dcraw.1 "${pkgdir}"/usr/share/man/man1/dcraw.1
+	
+	for i in dcraw_*.1; do j=${i#dcraw_}; k=${j%.1}
+		install -Dm644 $i "${pkgdir}"/usr/share/man/$k/man1/dcraw.1
+	done
+
+	for i in dcraw_*.po; do j=${i#dcraw_}; k=${j%.po}
+		install -d "${pkgdir}"/usr/share/locale/$k/LC_MESSAGES
+		msgfmt -o "${pkgdir}"/usr/share/locale/$k/LC_MESSAGES/dcraw.mo $i
+	done
+
+	install -d "${pkgdir}"/usr/share/licenses/${pkgname}
+	head -25 dcraw.c > "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
+}


More information about the arch-commits mailing list