From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/rawstudio/PKGBUILD | 30 ++++++++++++++++++++++++++++++ community/rawstudio/rawstudio-const.patch | 12 ++++++++++++ community/rawstudio/rawstudio.install | 11 +++++++++++ 3 files changed, 53 insertions(+) create mode 100644 community/rawstudio/PKGBUILD create mode 100644 community/rawstudio/rawstudio-const.patch create mode 100644 community/rawstudio/rawstudio.install (limited to 'community/rawstudio') diff --git a/community/rawstudio/PKGBUILD b/community/rawstudio/PKGBUILD new file mode 100644 index 000000000..06730f73a --- /dev/null +++ b/community/rawstudio/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 40356 2011-02-23 08:05:16Z ebelanger $ +# Maintainer: Daniel J Griffiths +# Contributor: Roman Kyrylych +# Contributor: cdhotfire + +pkgname=rawstudio +pkgver=1.2 +pkgrel=6 +pkgdesc="An open source raw-image converter written in GTK+" +arch=('i686' 'x86_64') +license=('GPL') +url="http://rawstudio.org/" +depends=('gconf' 'libxml2' 'lcms' 'libjpeg' 'libtiff' 'desktop-file-utils' 'exiv2') +install=${pkgname}.install +source=(http://rawstudio.org/files/release/${pkgname}-${pkgver}.tar.gz + 'rawstudio-const.patch') +md5sums=('25399cd80294fa44220a8940fc77689f' '6692b460e838ea56462aff7626b2dcef') +sha1sums=('9ce96c40e0b8feaf4627c14310646782578d4da1' '95d83914d5ae156f0fe747945516ae6cc93adac5') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/rawstudio-const.patch" + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make prefix="${pkgdir}/usr" install +} diff --git a/community/rawstudio/rawstudio-const.patch b/community/rawstudio/rawstudio-const.patch new file mode 100644 index 000000000..00332fe88 --- /dev/null +++ b/community/rawstudio/rawstudio-const.patch @@ -0,0 +1,12 @@ +diff -Nur rawstudio-1.2.orig/src/dcraw.cc rawstudio-1.2/src/dcraw.cc +--- rawstudio-1.2.orig/src/dcraw.cc 2009-04-10 00:21:45.000000000 +0300 ++++ rawstudio-1.2/src/dcraw.cc 2009-07-16 00:05:28.169155134 +0300 +@@ -8510,7 +8510,7 @@ + argv[argc] = ""; + for (arg=1; (((opm = argv[arg][0]) - 2) | 2) == '+'; ) { + opt = argv[arg++][1]; +- if ((cp = strchr (sp="nbrkStqmHACg", opt))) ++ if ((cp = (char *)strchr (sp="nbrkStqmHACg", opt))) + for (i=0; i < "114111111422"[cp-sp]-'0'; i++) + if (!isdigit(argv[arg+i][0])) { + dcraw_message (DCRAW_ERROR,_("Non-numeric argument to \"-%c\"\n"), opt); diff --git a/community/rawstudio/rawstudio.install b/community/rawstudio/rawstudio.install new file mode 100644 index 000000000..5e5cfef4d --- /dev/null +++ b/community/rawstudio/rawstudio.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + update-desktop-database -q +} -- cgit v1.2.3-54-g00ecf