aboutsummaryrefslogtreecommitdiffstats
path: root/main/geany/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-12-04 14:42:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-04 14:42:24 +0000
commit688fcc71e247d89818b45c380213c30aa71f761e (patch)
treede7e0c3e3b7f47352305147b30e54428156b3d98 /main/geany/APKBUILD
parente01796879cf6d65650e4ed54bf16fdeedd436f23 (diff)
downloadaports-688fcc71e247d89818b45c380213c30aa71f761e.tar.bz2
aports-688fcc71e247d89818b45c380213c30aa71f761e.tar.xz
main/geany: set default browser to midori and default terminal to Terminal
Diffstat (limited to 'main/geany/APKBUILD')
-rw-r--r--main/geany/APKBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/main/geany/APKBUILD b/main/geany/APKBUILD
index a1820b11ff..57e4f05ab9 100644
--- a/main/geany/APKBUILD
+++ b/main/geany/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geany
pkgver=0.19.2
-pkgrel=0
+pkgrel=1
pkgdesc="A fast and lightweight IDE"
url="http://www.geany.org"
license="GPL"
@@ -12,14 +12,23 @@ 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 "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure --prefix=/usr
make || return 1
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ 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