-
-
Save rewbycraft/65ed742ca9ea1f09e218932afe215e53 to your computer and use it in GitHub Desktop.
PKGBUILD For Package gatemate-p_r-bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec /opt/gatemate/p_r/p_r "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: rewby <rewby@protonmail.com> | |
pkgname=gatemate-p_r-bin | |
pkgver=r2024.02.001 | |
pkgrel=1 | |
pkgdesc="The place and route tool for CologneChip GateMate FPGA chips." | |
arch=('x86_64') | |
url="https://colognechip.com/programmable-logic/gatemate/gatemate-download/" | |
license=('unknown') | |
depends=(bash gcc-libs zlib glibc) | |
source=("https://colognechip.com/downloads/cc-toolchain-linux.tar.gz" | |
"p_r") | |
sha256sums=('SKIP' | |
'69c5ad488baa77c4ff2bad74a922feb338781915fa27bebeaa2b3e75a41e51d2') | |
pkgver() { | |
cd "${srcdir}/cc-toolchain-linux/bin" | |
grep p_r VERSION | sed 's/\r//g;s/p_r-dcclinux64-\(.*\)/r\1/g;s/-/./g' | |
} | |
package() { | |
install -D -m755 "p_r" -t "${pkgdir}/usr/bin" | |
cd "${srcdir}/cc-toolchain-linux/bin/p_r" | |
for file in cc_best_eco_dly.dly \ | |
cc_best_lpr_dly.dly \ | |
cc_best_spd_dly.dly \ | |
cc_typ_eco_dly.dly \ | |
cc_typ_lpr_dly.dly \ | |
cc_typ_spd_dly.dly \ | |
cc_worst_eco_dly.dly \ | |
cc_worst_lpr_dly.dly \ | |
cc_worst_spd_dly.dly \ | |
cpelib.v; do | |
install -D -m644 "$file" -t "${pkgdir}/opt/gatemate/p_r" | |
done | |
install -D -m755 "p_r" -t "${pkgdir}/opt/gatemate/p_r" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment