aboutsummaryrefslogtreecommitdiffstats
path: root/main/joe/APKBUILD
blob: 6ee1013bd9b527a0e6ccc21c0746865323e0e80d (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
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Maintainer:
pkgname=joe
pkgver=3.7
pkgrel=0
pkgdesc="Full featured terminal-based screen editor"
url="http://joe-editor.sourceforge.net/"
arch="all"
license="GPL"
depends=""
makedepends="ncurses-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/joe-editor/JOE%20sources/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr --sysconfdir=/etc || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

md5sums="66de1b073e869ba12abbfcde3885c577  joe-3.7.tar.gz"