diff options
author | yjun | 2021-03-27 20:38:14 +0800 |
---|---|---|
committer | yjun | 2021-03-27 20:38:14 +0800 |
commit | 76a8d555ce212ccaecdce838e5e92b52492436ef (patch) | |
tree | 9dd1979133cd01e5cf5bb309f1cc17d204c8cdb0 | |
download | aur-76a8d555ce212ccaecdce838e5e92b52492436ef.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | easyeda-router.service | 12 | ||||
-rw-r--r-- | easyeda-router.sh | 2 |
4 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..41be57bf6bee --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = easyeda-router + pkgdesc = LCEDA/EASYEDA local auto router server for Linux. + pkgver = 0.8.11 + pkgrel = 1 + url = https://docs.easyeda.com/en/PCB/Route/index.html#Cloud-Auto-Router + arch = x86_64 + license = unknown + depends = jre8-openjdk-headless + source = easyeda-router-0.8.11.zip::https://image.easyeda.com/files/EasyEDA-Router-v0.8.11.zip + source = easyeda-router.sh + source = easyeda-router.service + sha256sums = c7d5e36f60e9ff47a2775cdd922151173012d45f44bc843afeed80d1fb0a7616 + sha256sums = 1868c56d03b0ccd07d30b8e3756bf7550209092d2050c322c63860b9c8bf7ba5 + sha256sums = c7c3541d47e2bdabe706689956ee3788c02bba25bd73034f84049d6576243f34 + +pkgname = easyeda-router + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..33387331b55a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: yjun <jerrysteve1101 at gmail dot com> + +pkgname=easyeda-router +pkgver=0.8.11 +pkgrel=1 +pkgdesc="LCEDA/EASYEDA local auto router server for Linux." +arch=('x86_64') +url="https://docs.easyeda.com/en/PCB/Route/index.html#Cloud-Auto-Router" +#url="https://docs.lceda.cn/cn/PCB/Route/index.html#%E8%87%AA%E5%8A%A8%E5%B8%83%E7%BA%BF" +license=('unknown') +depends=('jre8-openjdk-headless') +source=(${pkgname}-${pkgver}.zip::"https://image.easyeda.com/files/EasyEDA-Router-v${pkgver}.zip") +# source=(${pkgname}-${pkgver}.zip::"https://image.lceda.cn/files/EasyEDA-Router-latest.zip") +source+=("${pkgname}.sh" + "${pkgname}.service") +sha256sums=('c7d5e36f60e9ff47a2775cdd922151173012d45f44bc843afeed80d1fb0a7616' + '1868c56d03b0ccd07d30b8e3756bf7550209092d2050c322c63860b9c8bf7ba5' + 'c7c3541d47e2bdabe706689956ee3788c02bba25bd73034f84049d6576243f34') + +_install() { + cd ${srcdir} + + find $1 -type f -exec install -Dm644 {} ${pkgdir}/usr/share/java/${pkgname}/{} \; +} + +package() { + # bin + _install 'bin' + + # config + _install 'config' + + # wrapper + install -Dm755 ${pkgname}.sh ${pkgdir}/usr/bin/${pkgname} + + # systemd service + install -Dm644 ${pkgname}.service -t ${pkgdir}/usr/lib/systemd/system/ +} + +# vim: set sw=2 ts=2 et: diff --git a/easyeda-router.service b/easyeda-router.service new file mode 100644 index 000000000000..9aa9a48c1352 --- /dev/null +++ b/easyeda-router.service @@ -0,0 +1,12 @@ +[Unit] +Description=EasyEDA Local Auto Router Server +After=network.target + +[Service] +Type=simple +DynamicUser=yes +ExecStart=/usr/bin/easyeda-router +Restart=always + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/easyeda-router.sh b/easyeda-router.sh new file mode 100644 index 000000000000..a58f1f19407d --- /dev/null +++ b/easyeda-router.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/java -Dcom.easyeda.env=local -jar '/usr/share/java/easyeda-router/bin/bootstrap.jar'
\ No newline at end of file |