summaryrefslogtreecommitdiff
path: root/community/geany/PKGBUILD
blob: 509b0be3a47b3ac7ae6d6e64c357007528be3f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id: PKGBUILD 57809 2011-11-03 09:42:30Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: 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.21
pkgrel=2
pkgdesc="Fast and lightweight IDE"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.geany.org/"
license=('GPL')
depends=('gtk2' 'hicolor-icon-theme' 'desktop-file-utils' 'python2')
makedepends=('perlxml' 'intltool')
optdepends=("vte: for terminal support")
install=geany.install
source=("http://download.geany.org/$pkgname-$pkgver.tar.gz")
options=('!libtool')
md5sums=('d2734776badc3f5f9a778814ed56fb8a')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  msg2 "Configuring..."
  ./configure --prefix=/usr
  msg2 "Compiling..."
  make
  msg2 "Python2 fix..."
	sed -i '0,/on/s//on2/' data/templates/files/main.py
  msg2 "Fixing FS#10318..."
  sed -i 's|MimeType=text/plain;|MimeType=|' geany.desktop
  msg2 "Enabling colors for PKGBUILD files..."
  sed -i 's|Sh=|Sh=PKGBUILD;|' data/filetype_extensions.conf
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: