aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mmh/APKBUILD
blob: 808e3f1d5816dd7e78d246ca051955d9d58b290e (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
47
48
49
50
51
52
53
54
55
56
57
58
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=mmh
pkgver=0.2
pkgrel=0
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
	musl-fixes.patch
	symlinks.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1

	local i=
	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/$pkgname \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

md5sums="f783e729a25cc3bbe4b856aca89b85b2  mmh-0.2.tar.gz
eb7946984ca385c6ad49e0f2ea5b2fa3  musl-fixes.patch
4351aef49407471609d1ab6047cafae2  symlinks.patch"
sha256sums="23a9f3bec1b43260b8a0b327825ce35b370ef19454585b3d4c8757599a7539ab  mmh-0.2.tar.gz
a694cf2212787d7e924f61f23e276f92184cfb10fc38561deb88e532faec85ea  musl-fixes.patch
bc91f0053297eeedb7dbffd5ca627cc6805f8b9987a4fd74c1eca5dee0a4666b  symlinks.patch"
sha512sums="5fb38f94a8ff1b81e69af2d80f529796cb3c6685ece96f75a7c0f442a4b0d8ab2f21f7b97bcaf7fb7f1b1b29aff93750cbac33b370be20ff7f0730cf136893af  mmh-0.2.tar.gz
a7a9df6c93cdc1fbd8c93b33eafa8f3749e56cc3bf10c97c18b6bf745fd2423b848aecd2334aa2c2531c0164ca558c592a44a3642c29436a9a7f159300ffc00b  musl-fixes.patch
d6b92f582a15a2664f275b32e6ddf827fd0176e5e289a27bb210e9c58e02fa159bdf26c01f1227dad64ec5fb55ab5aac4b86246ba66ef46c656749be2a11842f  symlinks.patch"