blob: ae77018afba261611befdb2d0bde89272a06a709 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# $Id: PKGBUILD 177853 2013-02-10 10:42:13Z bisson $
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Tobias Kieslich <tobias@justdreams.de>
pkgname=dcraw
pkgver=9.17
pkgrel=1
pkgdesc='Decodes any raw image from any digital camera'
url='http://www.cybercom.net/~dcoffin/dcraw/'
arch=('i686' 'x86_64' 'mips64el')
license=('custom')
depends=('lcms' 'jasper')
source=("http://www.cybercom.net/~dcoffin/dcraw/archive/${pkgname}-${pkgver}.tar.gz")
sha1sums=('11a0b20b8f46950dd94e6c1ada313807049a6b27')
build() {
cd "${srcdir}/${pkgname}"
gcc ${CFLAGS} ${LDFLAGS} \
-o dcraw dcraw.c \
-lm -ljasper -ljpeg -llcms \
-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
}
|