summaryrefslogtreecommitdiff
path: root/community/gimmage/PKGBUILD
blob: 521b13153dfc8e3a7573207dd46427922e4643c2 (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
# $Id: PKGBUILD 61575 2012-01-03 14:29:37Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Roman Kyrylych <roman@archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=gimmage
pkgver=0.2.3
pkgrel=4
pkgdesc="A gtkmm image viewer"
arch=('i686' 'x86_64' 'mips64el')
url="http://gimmage.berlios.de"
license=('GPL')
depends=('gtkmm' 'curl' 'file')
makedepends=('pkgconfig')
changelog=ChangeLog
source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz
	gimmage-0.2.3-gcc47.patch)
md5sums=('f51cca53b3d33415e75a91cf81b6ac39'
	 '23969d3aaaaf4285dc45bd59f4fb11c3')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -Np1 -i ${srcdir}/gimmage-0.2.3-gcc47.patch
  rm gimmage.desktop
  sed -i 's|Exec=@prefix@/bin/gimmage|Exec=@prefix@/bin/gimmage %U|' gimmage.desktop.in
  ./configure --prefix=/usr
  sed -i '1,1i#include <string.h>' src/FileManager.cpp
  make
  make DESTDIR=$pkgdir install
}