blob: beeb5d7d837bbe7f199be306633b2276c0b962fa (
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
59
60
61
|
# $Id$
# Maintainer: Max Mazurov <fox.cpp at disroot dot org>
# Contributor: Jonas Heinrich <onny@project-insantiy.org>
pkgname='maddy'
pkgver=0.5.1
pkgrel=1
pkgdesc='Composable all-in-one mail server'
arch=('x86_64')
url='https://github.com/foxcpp/maddy'
license=('GPL3')
depends=('glibc')
makedepends=('go' 'git' 'scdoc')
optdepends=()
source=(
"${pkgname}-${pkgver}.tar.zst::https://foxcpp.dev/maddy-builds/${pkgver}/maddy-${pkgver}-src.tar.zst"
"${pkgname}-${pkgver}.tar.zst.sig::https://foxcpp.dev/maddy-builds/${pkgver}/maddy-${pkgver}-src.tar.zst.sig"
'maddy.sysusers'
'maddy.tmpfiles'
)
backup=('etc/maddy/maddy.conf')
sha512sums=('955c728ed31d7187001ce40a5cd059aa5f5a84c2faaed9da0680fd311efc3562631e68a72a4fba699c8c060c8793822d580a3eb39e26a171ec56edefd5deb577'
'SKIP'
'750346110adb8caa61f537560018497f73543dc01ff26aceed2f052f281a35fdc659c9c478cc55775eadf8a3d17b511d5bed86334d1c455732dcb9a273120589'
'f33135b81129d6ef3006d8e9f410ec0d7e44226ae640dea77d756268d0e97828d8965ac75d0d9b49604a19b8b9e0384d15007d33c4b813f359108d28a10702b5')
validpgpkeys=('3197BBD95137E682A59717B434BB2007081396F4')
build() {
export GOPATH="$PWD/gopath"
cd "${srcdir}/maddy-${pkgver}-src"
./build.sh --version "${pkgver}" --prefix /usr build
# Module cache is read-only by default. Fix its permissions so it will be
# easier to clean build directory.
chmod -R +w ${GOPATH}
}
check() {
export GOPATH="$PWD/gopath"
cd "${srcdir}/maddy-${pkgver}-src"
go test ./...
cd tests/
./run.sh
chmod -R +w ${GOPATH}
}
package() {
export GOPATH="$PWD/gopath"
cd "${srcdir}/maddy-${pkgver}-src"
./build.sh \
--version "v${pkgver}" \
--prefix /usr \
--destdir "${pkgdir}" \
install
install -Dm 0644 "${srcdir}/maddy.sysusers" "${pkgdir}/usr/lib/sysusers.d/maddy.conf"
install -Dm 0644 "${srcdir}/maddy.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/maddy.conf"
}
|