# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Contributor: Caleb Maclennan <caleb@alerque.com>
+# Contributor: Andrew Lorimer <andrew@lorimer.id.au>
_pkgname=listmonk
pkgname=$_pkgname-bin
-pkgver=2.5.1
-pkgrel=2
+pkgver=3.0.0
+pkgrel=1
pkgdesc='Self-hosted newsletter and mailing list manager with a modern dashboard (binary release)'
arch=('x86_64' 'aarch64' 'armv6h' 'armv7h')
url="https://github.com/knadh/listmonk"
license=('AGPL3')
depends=('postgresql')
provides=("$_pkgname")
-conflicts=("$_pkgname")
+conflicts=("$_pkgname", "$_pkgname"-git)
+options=(!strip !debug)
backup=(etc/listmonk/config.toml)
install=$_pkgname.install
source=("$_pkgname-$pkgver.toml::https://raw.githubusercontent.com/knadh/$_pkgname/v$pkgver/config.toml.sample"
source_armv6h=("$url/releases/download/v${pkgver}/listmonk_${pkgver}_linux_armv6.tar.gz")
source_armv7h=("$url/releases/download/v${pkgver}/listmonk_${pkgver}_linux_armv7.tar.gz")
-sha256sums_x86_64=('552bb7cb47d7b55be7b48a4ccc19d69b96491065433dafd8cc6a0f39869e4113')
-sha256sums_aarch64=('832c5a34ed78446c179ed5423cdbce51d3e51333c1ea6cf11c74b63e0776193a')
-sha256sums_armv6h=('802a1755071e1a9c8b340984143effe9a88b49216f7711ffa00942535b2c3b76')
-sha256sums_armv7h=('7e7e96d64cd2af96711d8d3db717cfdb5c4b8c9ac3fb78b43a4704a8e5625c99')
+sha256sums_x86_64=('29c4965146231d40fb9bd2eecb469534a669262c025538788a56d5d365392cf4')
+sha256sums_aarch64=('c60a03a1ae74ad96e67eacb205d9b8c3f7dcebff164daa0a1da93e99c361b214')
+sha256sums_armv6h=('d70eab28b24d19b22c12d32fafdba56112f39950019aff9d33526e7f44ab7d69')
+sha256sums_armv7h=('8f405404901f1283b2ebddf1118f884c72883e981b3b70c2266c1cc523e48794')
package() {
install -Dm644 $_pkgname-$pkgver.toml "$pkgdir/etc/$_pkgname/config.toml"
\$ sudo -u postgres psql
postgres=# CREATE USER listmonk WITH PASSWORD '<your_password>';
- postgres=# CREATE DATABASE listmonk;
- postgres=# GRANT ALL PRIVILEGES ON DATABASE listmonk TO listmonk;
+ postgres=# CREATE DATABASE listmonk WITH OWNER listmonk;
postgres=# \\q
Then edit /etc/listmonk/config.toml with your new database credentials.