1# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
2# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
3pkgname=archive-mail
4pkgver=0_git20210919
5_commit=9f8fea18dae20df9bd7df922f1edc90c5cd9d673
6pkgrel=1
7pkgdesc="Maintains a maildir archive synced with a current maildir"
8url="https://github.com/nmeum/archive-mail"
9arch="all"
10license="GPL-3.0-or-later"
11makedepends="go"
12source="$pkgname-$pkgver.tar.gz::https://github.com/nmeum/archive-mail/archive/$_commit.tar.gz"
13builddir="$srcdir/$pkgname-$_commit"
14
15build() {
16 go build -o $pkgname -trimpath
17}
18
19check() {
20 ./tests/run_tests.sh
21}
22
23package() {
24 install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
25}
26
27sha512sums="
2883eefe78f832bb437d6df5bd64dfc4be0a00c53b381a7b8b9fb15c857c53d4f37b32f43b265021c3fc482ae77336594b8f1159999202f11db21fa1dd751003a2 archive-mail-0_git20210919.tar.gz
29"