blob: 512c29d1e0c003ae9318e4c9ece14a144db4c80d (
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
|
# Maintainer: Armin Preiml <apreiml@strohwolke.at>
pkgname=mailpit
pkgver=1.23.1
pkgrel=1
pkgdesc="Web and API based SMTP testing"
arch=("x86_64" "arm64")
license=("MIT")
url="https://github.com/axllent/mailpit"
makedepends=("git" "npm" "go")
optdepends=("systemd")
source=(
"https://github.com/axllent/mailpit/archive/refs/tags/v${pkgver}.tar.gz"
"mailpit.service"
)
build() {
cd "${srcdir}/mailpit-${pkgver}"
npm install
npm run build
go build -ldflags "-s -w"
}
package() {
cd "${srcdir}"
install -D -m644 ${srcdir}/mailpit.service ${pkgdir}/usr/lib/systemd/system/mailpit.service
cd "mailpit-${pkgver}"
install -D -m755 mailpit ${pkgdir}/usr/bin/mailpit
}
sha256sums=('17e4d640a9d342aa11cb5cfd39d539c74cf9144445431dfaac255c3798aeea16'
'602494cc3d28d58fa430ec3c53fd66e694db9faa87e98e45effe00a844affc4b')
|