aboutsummaryrefslogtreecommitdiffstats
path: root/community/mmh/APKBUILD
blob: d47b8db9415ec45cf993dd681abfd2b9ebcfcf6e (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: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=mmh
pkgver=0.3
pkgrel=1
pkgdesc="MUA for users who like the unix philosophy"
url="http://marmaro.de/prog/mmh/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="ncurses-dev autoconf flex"
install=""
subpackages="$pkgname-doc"
source="http://marmaro.de/prog/${pkgname}/files/${pkgname}-${pkgver}.tar.gz
	symlinks.patch"

builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	default_prepare || return 1

	cd "$builddir"
	update_config_sub || return 1
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/$pkgname \
		--mandir=/usr/share/man \
		--libdir=/usr/lib/$pkgname \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	make DESTDIR="$pkgdir" SETGID_MAIL= \
		-C "$builddir" install || return 1
}

sha512sums="e71585ce726733c808e8388b9fdf8e5c7fb86a309af358f6676ceac45ddb47bc17eedce9ce98a7e9c1d49456fcf4ff425761fb3ec3654f8c9f02f51ba37a5447  mmh-0.3.tar.gz
d6b92f582a15a2664f275b32e6ddf827fd0176e5e289a27bb210e9c58e02fa159bdf26c01f1227dad64ec5fb55ab5aac4b86246ba66ef46c656749be2a11842f  symlinks.patch"