summaryrefslogtreecommitdiff
path: root/community/gcolor2
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-07 15:14:25 +0000
committerroot <root@rshg054.dnsready.net>2011-09-07 15:14:25 +0000
commit52442b30a60f3a0dc7bc0eb214d123d001987c83 (patch)
treeb4ba9af92ba3a77331f71b19dd46fb3964e79c19 /community/gcolor2
parent17f3e93f2d2e9d6b429c34a2c107ee4d0b7b3973 (diff)
Wed Sep 7 15:14:25 UTC 2011
Diffstat (limited to 'community/gcolor2')
-rw-r--r--community/gcolor2/PKGBUILD30
1 files changed, 19 insertions, 11 deletions
diff --git a/community/gcolor2/PKGBUILD b/community/gcolor2/PKGBUILD
index 68f1304e1..b9b30a4df 100644
--- a/community/gcolor2/PKGBUILD
+++ b/community/gcolor2/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 9537 2010-01-27 00:58:00Z dgriffiths $
-# Maintainer: pressh <pressh funnysymbol gmail dot com>
+# Contributor: pressh <pressh funnysymbol gmail dot com>
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
# Contributor: shaun lastra <badicalia@gmail.com>
+# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=gcolor2
pkgver=0.4
-pkgrel=5
+pkgrel=6
pkgdesc="A simple GTK+2 color selector"
arch=('i686' 'x86_64')
url="http://gcolor2.sf.net/"
@@ -19,13 +19,21 @@ md5sums=('02de9d925ad5921522685f402caec3ec'
'9523da11b40dd167964d1b50b40250d5')
build() {
- cd $srcdir/$pkgname-$pkgver
- [ "$CARCH" == "x86_64" ] && (patch -p1 < ../gcolor2-0.4-amd64.patch || return 1)
- ./configure --prefix=/usr
- make || return 1
- make DESTDIR=$pkgdir install || return 1
+ cd ${srcdir}/${pkgname}-${pkgver}
+ [ "$CARCH" == "x86_64" ] && (patch -p1 < ../gcolor2-0.4-amd64.patch)
-# install desktop file
-install -Dm644 $srcdir/gcolor2.desktop \
- $pkgdir/usr/share/applications/gcolor2.desktop
+ # fix fs#25904
+ sed -i 's/\[:space:\]/[&]/g' configure
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ # install desktop file
+ install -Dm644 ${srcdir}/gcolor2.desktop \
+ ${pkgdir}/usr/share/applications/gcolor2.desktop
}