# Maintainer: Natanael Copa pkgname=geany pkgver=0.19.2 pkgrel=1 pkgdesc="A fast and lightweight IDE" url="http://www.geany.org" license="GPL" subpackages="$pkgname-dev $pkgname-doc" makedepends="gtk+-dev intltool perl-xml-parser vte-dev" depends= depends_dev="gtk+-dev" install= source="http://download.$pkgname.org/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" # set default browser to midori and default terminal to Terminal sed -e 's/firefox/midori/g' \ -e 's/xterm/Terminal/g' \ -i src/keyfile.c } build() { cd "$_builddir" ./configure --prefix=/usr make || return 1 } package() { cd "$_builddir" sed -i 's|MimeType=text/plain;|MimeType=|' geany.desktop || return 1 sed -i 's|Sh=|Sh=APKBUILD;|' data/filetype_extensions.conf || return 1 make DESTDIR="$pkgdir" install || return 1 } md5sums="f5e80dde58b2f925271f50fe8422c505 geany-0.19.2.tar.gz"