blob: c0498c88db24aa28b9dbc25e80bde0a4827752e7 (
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
|
# Maintainer: Mario Rubio <mario at mrrb dot eu>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Daniel Plank <tyrolyean@semi-professional.net>
pkgname=freerouting
pkgver=1.6.2
pkgrel=1
pkgdesc="Advanced PCB autorouter"
arch=('i686' 'x86_64')
url="https://github.com/freerouting/freerouting"
license=('GPL3')
depends=('jre17-openjdk>=17')
makedepends=('jdk17-openjdk>=17' git)
optdepends=('kicad: for use with PCB editor')
source=("https://github.com/${pkgname}/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
"freerouting.sh")
sha256sums=('91af882b6764de69a2eeb0e4711836fe7ac3dc41a31e057134577cc9697dd29a'
'8144ced213d127ef0d16abc787055bc3dd646db66ddee762ae9ba02f55bb3f73')
build() {
# Don't forget to set active JDK to 17 version before running makepkg:
# sudo archlinux-java set java-17-openjdk
cd "${pkgname}-${pkgver}"
./gradlew assemble
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm644 build/libs/freerouting-executable.jar "${pkgdir}/usr/lib/freerouting/freerouting-executable.jar"
install -Dm755 "${srcdir}/freerouting.sh" "${pkgdir}/usr/bin/freerouting"
}
|