summaryrefslogtreecommitdiff
path: root/main/hypermail/APKBUILD
blob: 48c073ac547ad42037673c978dc0918f2cbcbecb (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hypermail
pkgver=2.3.0
pkgrel=6
pkgdesc="Mail Archiver"
url="http://www.hypermail-project.org"
arch="all"
license="GPL-2.0-or-later"
depends="lua"
makedepends="pcre-dev bison gdbm-dev"
install=""
subpackages=""
source="http://www.hypermail-project.org/hypermail-$pkgver.tar.gz
	mdir2mbox.lua"

builddir="$srcdir"/hypermail

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-httpddir=/var/www \
		--with-cgidir=/var/www/cgi-bin
	make
}
package() {
	#does not understand DESTDIR so going to install ourselves
	#make DESTDIR="$pkgdir" install

	install -m755 -D archive/rdmsg "$pkgdir"/usr/bin/rdmsg
	install -m755 -D archive/msg2archive "$pkgdir"/usr/bin/msgarchive
	install -m755 -D src/hypermail "$pkgdir"/usr/bin/hypermail
	install -m755 -D "$srcdir"/mdir2mbox.lua "$pkgdir"/usr/bin/mdir2mbox.lua
}

sha512sums="6f4db2613a53f27e88a9827057be57df49b1dfff6dfcc7b531fdb983b03e64818f5845411f9eb42fc7ae8829281c67773d16fcb3b9d3fa2a7c92d5100fa9bb57  hypermail-2.3.0.tar.gz
203c292c46d40c35023629795ef0baa254c036ccfdb5628b3abf2d0c965bff9274f39571dfcb27aa508d9b801356d793fd5f78466ebb69b2306f56b28ac85b9c  mdir2mbox.lua"