summaryrefslogtreecommitdiff
path: root/community/gcolor2/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/gcolor2/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/gcolor2/PKGBUILD')
-rw-r--r--community/gcolor2/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/gcolor2/PKGBUILD b/community/gcolor2/PKGBUILD
new file mode 100644
index 000000000..b9b30a4df
--- /dev/null
+++ b/community/gcolor2/PKGBUILD
@@ -0,0 +1,39 @@
+# 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=6
+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)
+
+ # 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
+}