# $Id: PKGBUILD 65586 2012-02-21 09:11:19Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: tobias # Contributor: Tobias Kieslich pkgname=gphpedit pkgver=0.9.98RC1 pkgrel=3 pkgdesc="a scintilla/gnome based editor specialized on php-files" arch=(i686 x86_64 'mips64el') license=('GPL') depends=('libgnomeui>=2.18.1-2' 'libgtkhtml>=2.11.0' 'desktop-file-utils' 'libwebkit') makedepends=('intltool') url="http://www.gphpedit.org/" options=('!makeflags') install=gphpedit.install source=(http://www.gphpedit.org/sites/default/files/gphpedit-$pkgver.tar.gz gphpedit-0.9.98RC1-gmodule.patch) md5sums=('cc3c5f50704fa0ed3ef3d4ac983db525' '4eecf974dedbb3d29c64576d2642cd6f') build() { cd ${srcdir}/*$pkgname* patch -Np1 -i ${srcdir}/gphpedit-0.9.98RC1-gmodule.patch ./autogen.sh LDFLAGS=`pkg-config --libs gtk+-2.0` ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var make make DESTDIR=$pkgdir install # extend MimeType declaration echo "MimeType=application/x-php;text-x-php-text/x-php-source;" >> \ $pkgdir/usr/share/applications/gphpedit.desktop }