diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/rawstudio |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/rawstudio')
-rw-r--r-- | community/rawstudio/PKGBUILD | 30 | ||||
-rw-r--r-- | community/rawstudio/rawstudio-const.patch | 12 | ||||
-rw-r--r-- | community/rawstudio/rawstudio.install | 11 |
3 files changed, 53 insertions, 0 deletions
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 <ghost1227@archlinux.us> +# Contributor: Roman Kyrylych <roman@archlinux.org> +# Contributor: cdhotfire <cdhotfire@gmail.com> + +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 +} |