summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0c3f3002806a78e77f90a584861d4e939126b17 (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
# Maintainer: Kevin Schoon <me at kevinschoon dot com>

pkgname=mailpot-git
_pkgname=mailpot
pkgver=0.0.0
pkgrel=1
pkgdesc="Mailing List Manager"
arch=("x86_64")
license=("AGPL3")
url="https://git.meli-email.org/meli/mailpot"
depends=(
	"git"
	"sqlite"
)
makedepends=(
	"rust"
)
provides=("mailpot-git")
optdepends=()
source=(
	"$_pkgname::git+https://git.meli-email.org/meli/mailpot.git"
)

sha256sums=("SKIP")

build() {
	cd $_pkgname
	cargo build --release
}

package() {
	cd $_pkgname
	install -Dm755 "target/release/mpot" $pkgdir/usr/bin/mpot
	install -Dm755 "target/release/mpot-archives" $pkgdir/usr/bin/mpot-archives
	install -Dm755 "target/release/mpot-http" $pkgdir/usr/bin/mpot-http
	install -Dm755 "target/release/mpot-web" $pkgdir/usr/bin/mpot-web
	install -Dm644 "LICENSE" $pkgdir/usr/share/licenses/mailpot
}