blob: 5a1a9a250eabafb7d1035a2d5d660731bbdf147f (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geany
pkgver=0.20
pkgrel=1
pkgdesc="A fast and lightweight IDE"
url="http://www.geany.org"
arch="all"
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
find "$pkgdir" -name '*.la' -delete
}
md5sums="7e7d6e4a40e04ecacb9bc317f97becfb geany-0.20.tar.gz"
|