blob: 3cacbe13811a18c81bb19767bae967922edf6742 (
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
41
|
# Maintainer: Mario Rubio <mario at mrrb dot eu>
# Maintainer: Misaka13514 <misaka13514 at gmail dot com>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Daniel Plank <tyrolyean@semi-professional.net>
pkgname=freerouting
pkgver=2.0.1
_jrever=21
_jdkver=21
pkgrel=1
pkgdesc="Advanced PCB autorouter"
arch=('any')
url="https://github.com/freerouting/freerouting"
license=('GPL-3.0-only')
depends=("java-runtime=${_jrever}")
makedepends=("java-environment-openjdk=${_jdkver}")
optdepends=('kicad: for use with PCB editor')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
"freerouting.sh"
"freerouting.desktop")
sha512sums=('e514ba24ef5c53a6d275f26149eddd866a00d4110d322528f2820de072771a31abe4f8fd41135046f4f81a9ff48c4099bfd975d03e3fe2475b662c67ed407964'
'994102e3f526fe364920602dfa8f2160eeeeb512194172bdc82f1fb45c261c2da79b8baf58008da9ab56f33d1b047dfe1ccb2f7d4113215cdfc376319b4f9320'
'1eeacc544cd6081a9cef03424e505177972c65dc13d1379989889c0ed7419ed1b76013d48d160d0b74932aec1170ca1535b103f4266024b7f35e9656a11281f5')
build() {
cd "${pkgname}-${pkgver}"
export PATH="/usr/lib/jvm/java-${_jdkver}-openjdk/bin:$PATH"
./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"
install -Dm644 design/icon/freerouting_icon_256x256_v2.png "${pkgdir}/usr/share/icons/freerouting.png"
install -Dm644 "${srcdir}/freerouting.desktop" "${pkgdir}/usr/share/applications/freerouting.desktop"
}
|