summaryrefslogtreecommitdiff
path: root/community/geany
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/geany
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/geany')
-rw-r--r--community/geany/PKGBUILD37
-rw-r--r--community/geany/geany.install13
2 files changed, 50 insertions, 0 deletions
diff --git a/community/geany/PKGBUILD b/community/geany/PKGBUILD
new file mode 100644
index 000000000..b38061549
--- /dev/null
+++ b/community/geany/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 36732 2011-01-06 18:13:58Z angvp $
+# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Ionut Biru <ibiru@archlinux.ro>
+# Contributor: William Rea <sillywilly@gmail.com>
+# Contributor: Allan McRae <mcrae_allan@hotmail.com>
+
+pkgname=geany
+pkgver=0.20
+pkgrel=1
+pkgdesc="A fast and lightweight IDE"
+arch=('i686' 'x86_64')
+url="http://www.geany.org"
+license=('GPL')
+depends=('gtk2>=2.8.0')
+makedepends=('perlxml' 'intltool')
+optdepends=("vte: for terminal support")
+install=geany.install
+source=(http://download.geany.org/$pkgname-$pkgver.tar.gz)
+options=('!libtool')
+md5sums=('7e7d6e4a40e04ecacb9bc317f97becfb')
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ # python2 fix
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' data/templates/files/main.py
+
+ ./configure --prefix=/usr
+ make
+
+ # FS#10318
+ sed -i 's|MimeType=text/plain;|MimeType=|' geany.desktop
+ # Add colors for PKGBUILD file
+ sed -i 's|Sh=|Sh=PKGBUILD;|' data/filetype_extensions.conf
+
+ make DESTDIR=${pkgdir} install
+}
diff --git a/community/geany/geany.install b/community/geany/geany.install
new file mode 100644
index 000000000..7e83162e5
--- /dev/null
+++ b/community/geany/geany.install
@@ -0,0 +1,13 @@
+pkgname=geany
+
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}