summaryrefslogtreecommitdiff
path: root/community/gcolor2/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gcolor2/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gcolor2/PKGBUILD')
-rw-r--r--community/gcolor2/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/gcolor2/PKGBUILD b/community/gcolor2/PKGBUILD
new file mode 100644
index 000000000..68f1304e1
--- /dev/null
+++ b/community/gcolor2/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 9537 2010-01-27 00:58:00Z dgriffiths $
+# Maintainer: pressh <pressh funnysymbol gmail dot com>
+# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
+# Contributor: shaun lastra <badicalia@gmail.com>
+
+pkgname=gcolor2
+pkgver=0.4
+pkgrel=5
+pkgdesc="A simple GTK+2 color selector"
+arch=('i686' 'x86_64')
+url="http://gcolor2.sf.net/"
+license=('GPL')
+depends=('gtk2')
+makedepends=('perlxml')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \
+ gcolor2-0.4-amd64.patch gcolor2.desktop)
+md5sums=('02de9d925ad5921522685f402caec3ec'
+ '5791378f6f86dd25a302ad8586292dd6'
+ '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
+
+# install desktop file
+install -Dm644 $srcdir/gcolor2.desktop \
+ $pkgdir/usr/share/applications/gcolor2.desktop
+}