n8n: 1.45.1-1

This commit is contained in:
devome 2024-06-20 00:01:34 +08:00
parent 6560b15c07
commit 337fbac2cd
3 changed files with 24 additions and 24 deletions

View file

@ -3,23 +3,25 @@ pkgbase = n8n
pkgver = 1.45.1
pkgrel = 1
url = https://github.com/n8n-io/n8n
arch = any
arch = i686
arch = x86_64
arch = arm
arch = armv7h
arch = armv6h
arch = aarch64
license = custom:Sustainable Use License
license = custom:n8n Enterprise License
makedepends = npm
depends = nodejs
options = !strip
options = !debug
backup = etc/n8n/n8n.env
source = n8n-1.45.1.tar.gz::https://github.com/n8n-io/n8n/archive/refs/tags/n8n@1.45.1.tar.gz
backup = etc/default/n8n
source = n8n.env
source = n8n.service
source = n8n.sysusers
source = n8n.tmpfiles
source = n8n.user.service
sha256sums = 6257b8601e5f2cfa5ec16fc8b0004b8b6bc864f6b2f4527a4794c174cb0e37f7
sha256sums = faae87f26ac2bca25d98aa02564876742e7ed5dd4146342062196ed12d97385f
sha256sums = e5127ceab1ad7e31cde7483bb978cd6c4cdb9402d7d44e9c74ead7ae921acfe4
sha256sums = 9356600848545416c490e3d74aff8494946afca187dd409a9f768db7a364f9da
sha256sums = 6139ae944272cdc50715fd82a3c062ebf1b7fd73f7f789cba0d27f5a0436c688
sha256sums = faa4145ec8723700c5f8f75ae2dd3d78c931597b67e200050b55fec9d73c3f06
sha256sums = 03cb79cddc04a0303be6d60ba2e7801106b6d4405d33953a2c508c5825c66a7c

View file

@ -4,39 +4,37 @@ pkgname="n8n"
pkgver=1.45.1
pkgrel=1
pkgdesc="Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services."
arch=('any')
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/${pkgname}-io/${pkgname}"
license=("custom:Sustainable Use License" "custom:n8n Enterprise License")
backup=("etc/${pkgname}/${pkgname}.env")
license=("custom:Sustainable Use License")
backup=("etc/default/${pkgname}")
depends=("nodejs")
makedepends=("npm")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgname}@${pkgver}.tar.gz"
"${pkgname}.env"
source=("${pkgname}.env"
"${pkgname}.service"
"${pkgname}.sysusers"
"${pkgname}.tmpfiles"
"${pkgname}.user.service")
sha256sums=('6257b8601e5f2cfa5ec16fc8b0004b8b6bc864f6b2f4527a4794c174cb0e37f7'
'faae87f26ac2bca25d98aa02564876742e7ed5dd4146342062196ed12d97385f'
'e5127ceab1ad7e31cde7483bb978cd6c4cdb9402d7d44e9c74ead7ae921acfe4'
sha256sums=('faae87f26ac2bca25d98aa02564876742e7ed5dd4146342062196ed12d97385f'
'9356600848545416c490e3d74aff8494946afca187dd409a9f768db7a364f9da'
'6139ae944272cdc50715fd82a3c062ebf1b7fd73f7f789cba0d27f5a0436c688'
'faa4145ec8723700c5f8f75ae2dd3d78c931597b67e200050b55fec9d73c3f06'
'03cb79cddc04a0303be6d60ba2e7801106b6d4405d33953a2c508c5825c66a7c')
options=(!strip !debug)
package() {
npm install --ignore-scripts -g --prefix="${pkgdir}/usr" "${pkgname}@${pkgver}"
npm rebuild --prefix="${pkgdir}/usr/lib/node_modules/${pkgname}" sqlite3
find "${pkgdir}/usr/lib/node_modules/${pkgname}" -type f -name "*.ts" -o -name "*.js.map" -o -name "*.vue" | xargs rm -f
install -Dm644 "${pkgname}.env" "${pkgdir}/etc/${pkgname}/${pkgname}.env"
install -Dm644 "${pkgname}.env" "${pkgdir}/etc/default/${pkgname}"
install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -Dm644 "${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -Dm644 "${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
install -Dm644 "${pkgname}.user.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
cd "${pkgname}-${pkgname}-${pkgver}"
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 LICENSE_EE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-EE"
install -Dm644 {README,CHANGELOG}.md -t "${pkgdir}/usr/share/doc/${pkgname}"
npm install --cache "npm-cache" --global --ignore-scripts --prefix="${pkgdir}/usr" "${pkgname}@${pkgver}"
npm rebuild --prefix="${pkgdir}/usr/lib/node_modules/${pkgname}" sqlite3
find "${pkgdir}/usr/lib/node_modules/${pkgname}" -type f -name "*.ts" -o -name "*.js.map" -o -name "*.vue" | xargs rm -f
install -dm755 "${pkgdir}/usr/share/"{licenses,doc}"/${pkgname}"
ln -s "/usr/lib/node_modules/${pkgname}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
ln -s "/usr/lib/node_modules/${pkgname}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}

View file

@ -6,7 +6,7 @@ After = network-online.target
User = n8n
Restart = on-failure
RestartSec = 5
EnvironmentFile = -/etc/n8n/n8n.env
EnvironmentFile = -/etc/default/n8n
ExecStart = /usr/bin/n8n
[Install]