# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: pressh # Contributor: Eric Belanger # Contributor: shaun lastra pkgname=gcolor2 pkgver=0.4 pkgrel=4 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' '6086b8be0917301fbad1b98a401a9d0c') 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 }