aboutsummaryrefslogtreecommitdiffstats
path: root/main/joe/APKBUILD
blob: f0ea3026fb3b5184b64af6a6017cab3c8547e558 (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
44
45
46
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Maintainer:
pkgname=joe
pkgver=4.0
pkgrel=3
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--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="3c3b6d5089a29ddc746ee89bab59286e  joe-4.0.tar.gz"
sha256sums="c556adff77fd97bf1b86198de6cb82e0b92cda18579c4fef6c83b608d2ed2915  joe-4.0.tar.gz"
sha512sums="6d88ec9d4fd51f768dd35f74cc296f6e6469a3b36ff7aa0306796577d3a27c2719e8580483ab6184ffa3d00c6ec81d53548b501ae231845e4c0640988b0e7a31  joe-4.0.tar.gz"