listmonk 2.0.0.r82.d42c676-1
This commit is contained in:
@@ -1,31 +1,41 @@
|
|||||||
# Maintainer: Caleb Maclennan <caleb@alerque.com>
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
|
||||||
|
|
||||||
pkgname=listmonk
|
pkgname=listmonk
|
||||||
pkgver=2.0.0
|
pkgver=2.0.0.r82.d42c676
|
||||||
pkgrel=5
|
pkgrel=1
|
||||||
pkgdesc='Self-hosted newsletter and mailing list manager with a modern dashboard'
|
pkgdesc='Self-hosted newsletter and mailing list manager with a modern dashboard'
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url=https://listmonk.app
|
url=https://listmonk.app
|
||||||
license=(AGPL3)
|
license=(AGPL3)
|
||||||
depends=(postgresql)
|
depends=(postgresql)
|
||||||
makedepends=(go node-gyp nodejs yarn)
|
makedepends=(go node-gyp 'nodejs<17' yarn git)
|
||||||
backup=(etc/listmonk/config.toml)
|
backup=(etc/listmonk/config.toml)
|
||||||
install=$pkgname.install
|
install=$pkgname.install
|
||||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/knadh/$pkgname/archive/v$pkgver.tar.gz"
|
options=("!lto")
|
||||||
|
_commit=d42c676503b42232e25620ab17d74f288ddd1109 # master
|
||||||
|
source=("git+https://github.com/knadh/$pkgname.git#commit=$_commit"
|
||||||
|
# "$pkgname-$pkgver.tar.gz::https://github.com/knadh/$pkgname/archive/v$pkgver.tar.gz"
|
||||||
"$pkgname.conf"
|
"$pkgname.conf"
|
||||||
"$pkgname.service")
|
"$pkgname.service")
|
||||||
sha256sums=('8ec73d9ee65dd0f1c5f7a2453982692e34a5eaa588eb05d0ec30afc0635b033f'
|
sha256sums=('SKIP'
|
||||||
'5cfc186438df2408ed88a5bec3a9a4b5f2afb0d3aec41c4cc63b2f5eb810b3cb'
|
'5cfc186438df2408ed88a5bec3a9a4b5f2afb0d3aec41c4cc63b2f5eb810b3cb'
|
||||||
'809ede70c932183889b2fa567b340fb82cce1ada76c7b0a0b9efb82b87c92fa0')
|
'809ede70c932183889b2fa567b340fb82cce1ada76c7b0a0b9efb82b87c92fa0')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$srcdir/${pkgname}"
|
||||||
|
printf "%s" "$(git describe --long | sed 's/^v//g;s/\([^-]*-\)g/r\1/;s/-/./g')"
|
||||||
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$pkgname-$pkgver/frontend"
|
# cd "$pkgname-$pkgver/frontend"
|
||||||
|
cd "$pkgname/frontend"
|
||||||
export YARN_CACHE_FOLDER="$srcdir/node_modules"
|
export YARN_CACHE_FOLDER="$srcdir/node_modules"
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$pkgname-$pkgver"
|
# cd "$pkgname-$pkgver"
|
||||||
|
cd "$pkgname"
|
||||||
|
|
||||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||||
export CGO_CFLAGS="${CFLAGS}"
|
export CGO_CFLAGS="${CFLAGS}"
|
||||||
@@ -46,12 +56,14 @@ build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$pkgname-$pkgver"
|
# cd "$pkgname-$pkgver"
|
||||||
|
cd "$pkgname"
|
||||||
go test ./...
|
go test ./...
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$pkgname-$pkgver"
|
# cd "$pkgname-$pkgver"
|
||||||
|
cd "$pkgname"
|
||||||
install -Dm755 -t "$pkgdir/usr/bin" $pkgname
|
install -Dm755 -t "$pkgdir/usr/bin" $pkgname
|
||||||
install -Dm644 config.toml.sample "$pkgdir/etc/$pkgname/config.toml"
|
install -Dm644 config.toml.sample "$pkgdir/etc/$pkgname/config.toml"
|
||||||
install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" "../$pkgname.service"
|
install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" "../$pkgname.service"
|
||||||
@@ -60,8 +72,6 @@ package() {
|
|||||||
config.toml.sample \
|
config.toml.sample \
|
||||||
schema.sql \
|
schema.sql \
|
||||||
queries.sql
|
queries.sql
|
||||||
# install -Dm644 -t "$pkgdir/usr/share/$pkgname/frontend/dist/" \
|
|
||||||
# frontend/public/static/favicon.png
|
|
||||||
mkdir -p "$pkgdir/usr/share/$pkgname/frontend/dist"
|
mkdir -p "$pkgdir/usr/share/$pkgname/frontend/dist"
|
||||||
cp -a static "$pkgdir/usr/share/$pkgname/"
|
cp -a static "$pkgdir/usr/share/$pkgname/"
|
||||||
install -Dm644 -t "$pkgdir/usr/share/$pkgname/static" config.toml.sample
|
install -Dm644 -t "$pkgdir/usr/share/$pkgname/static" config.toml.sample
|
||||||
|
Reference in New Issue
Block a user