aboutsummaryrefslogtreecommitdiffstats
path: root/main/hypermail/APKBUILD
blob: baf9fa102548f71515e0eb9545291dc9b2401862 (plain) (blame)
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
# Contributor: Michael Mason <ms13sp@gmail.com>
pkgname=hypermail
pkgver=2.2.0
pkgrel=1
pkgdesc="Mail Archiver"
url="http://www.hypermail-project.org"
license="GPL"
depends="pcre lua"
makedepends="pcre-dev bison gdbm-dev"
install=
subpackages=""
source="http://www.hypermail-project.org/$pkgname-$pkgver.tar.gz
	mdir2mbox.lua"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-httpddir=/var/www \
		--with-cgidir=/var/www/cgi-bin
	make || return 1
}
package() {
	cd "$_builddir"

	#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
}

md5sums="a064e36780ee41409c8c973f9c69927f  hypermail-2.2.0.tar.gz
079b00d4ea667a0efd6fd370b1a4d5d8  mdir2mbox.lua"