2023-08-18 11:28:23 +00:00
|
|
|
#/usr/bin/env bash
|
|
|
|
|
|
|
|
pkgname="remark42"
|
|
|
|
pkgver=1.12.0
|
2024-01-30 08:55:08 +00:00
|
|
|
pkgrel=5
|
2023-08-18 11:28:23 +00:00
|
|
|
arch="amd64"
|
|
|
|
pkgcommit=""
|
|
|
|
section="utils"
|
|
|
|
priority="optional"
|
|
|
|
pkgdesc="A comment engine"
|
|
|
|
url="https://github.com/umputun/remark42"
|
|
|
|
maintainer="Leafee98 <me@leafee98.com>"
|
|
|
|
|
|
|
|
_archive_name="remark42.linux-amd64"
|
|
|
|
|
|
|
|
source=(
|
|
|
|
"${_archive_name}.tar.gz::https://github.com/umputun/remark42/releases/download/v${pkgver}/${_archive_name}.tar.gz"
|
|
|
|
"remark42.service::materials/remark42.service"
|
|
|
|
)
|
|
|
|
|
|
|
|
function package {
|
|
|
|
install -Dm755 "${srcdir}/${_archive_name}" "${pkgdir}/usr/bin/remark42"
|
|
|
|
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/remark42/LICENSE"
|
|
|
|
install -Dm644 "${srcdir}/README.md" "${pkgdir}/usr/share/doc/remark42/README.md"
|
|
|
|
|
|
|
|
install -Dm644 "${srcdir}/remark42.service" "${pkgdir}/usr/lib/systemd/system/remark42.service"
|
|
|
|
}
|
|
|
|
|
|
|
|
function debian_postinst {
|
|
|
|
cat << EOF
|
2023-08-18 12:30:03 +00:00
|
|
|
#!/usr/bin/env bash
|
2023-08-18 11:28:23 +00:00
|
|
|
touch /etc/default/remark42
|
2024-01-30 08:55:08 +00:00
|
|
|
adduser --system --group remark42
|
2023-12-13 09:19:28 +00:00
|
|
|
|
|
|
|
systemctl daemon-reload
|
|
|
|
if systemctl is-active --quiet remark42.service ; then
|
|
|
|
systemctl restart remark42.service
|
|
|
|
fi
|
2023-08-18 11:28:23 +00:00
|
|
|
EOF
|
|
|
|
}
|