summaryrefslogtreecommitdiff
path: root/community/gimmage
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-31 03:57:01 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-31 03:57:01 +0000
commit7cd564d1e9657febf970765ffd43fcee8abe7ff5 (patch)
tree49981b5eb9933d5122695dbe1698233d0ef53133 /community/gimmage
parent4ac93228afaf8da847b4ec91aac9c43f3bef472c (diff)
Sat May 31 03:30:32 UTC 2014
Diffstat (limited to 'community/gimmage')
-rw-r--r--community/gimmage/PKGBUILD17
1 files changed, 13 insertions, 4 deletions
diff --git a/community/gimmage/PKGBUILD b/community/gimmage/PKGBUILD
index 36b32322a..819747f5e 100644
--- a/community/gimmage/PKGBUILD
+++ b/community/gimmage/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 61575 2012-01-03 14:29:37Z spupykin $
+# $Id: PKGBUILD 112233 2014-05-30 11:54:15Z 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
+pkgrel=5
pkgdesc="A gtkmm image viewer"
arch=('i686' 'x86_64')
url="http://gimmage.berlios.de"
@@ -16,12 +16,21 @@ changelog=ChangeLog
source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('f51cca53b3d33415e75a91cf81b6ac39')
-build() {
+prepare() {
cd $srcdir/$pkgname-$pkgver
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
+ sed -i '1,1i#include <unistd.h>' src/FileManager.cpp
+}
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr
make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
}