summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33387331b55a591adceea00aebb5a4ef948be0e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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: