34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
# Template file for 'freerouting'
|
|
pkgname=freerouting
|
|
version=1.4.5.1
|
|
revision=1
|
|
hostmakedepends="dos2unix gradle openjdk11"
|
|
depends="openjdk11"
|
|
short_desc="Advanced PCB autorouter"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/freerouting/freerouting"
|
|
distfiles="https://github.com/freerouting/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=f423b7ad9fe6be57247f5f79f7c77390061998a50bc3bddc42e010c5a3fe556a
|
|
|
|
post_extract() {
|
|
# git eats CRLFs, so the patch has wrong line ending.
|
|
# Instead convert the target file to LF-only.
|
|
dos2unix $wrksrc/src/main/java/module-info.java
|
|
dos2unix $wrksrc/src/main/java/eu/mihosoft/freerouting/gui/BoardFrame.java
|
|
dos2unix $wrksrc/src/main/java/eu/mihosoft/freerouting/gui/BoardMenuBar.java
|
|
dos2unix $wrksrc/src/main/java/eu/mihosoft/freerouting/gui/BoardMenuHelp.java
|
|
}
|
|
|
|
do_build() {
|
|
. /etc/profile.d/10_openjdk11.sh
|
|
gradle assemble
|
|
}
|
|
|
|
do_install() {
|
|
vinstall build/libs/freerouting-executable.jar 644 usr/lib/freerouting
|
|
vbin ${FILESDIR}/freerouting.sh freerouting
|
|
vinstall ${FILESDIR}/freerouting.desktop 644 usr/share/applications
|
|
vinstall ${FILESDIR}/freerouting.svg 644 usr/share/icons/hicolor/scalable/apps
|
|
}
|