blob: c2ac8e5a85b90fe8b0fb3a2f0b9e50740c3acb93 (
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
|
# Maintainer: glatavento <glatavento at outlook dot com>
pkgname=openfpgaloader-bin
pkgver=0.12.1
pkgrel=1
pkgdesc="Universal utility for programming FPGA"
arch=('x86_64')
url="https://github.com/trabucayre/openFPGALoader"
license=('Apache2')
depends=('libftdi' 'hidapi' 'libudev.so')
provides=('openfpgaloader')
conflicts=('openfpgaloader')
source=("$pkgname-$pkgver.tar.gz::https://github.com/trabucayre/openFPGALoader/releases/download/v${pkgver}/ubtuntu22.04-openFPGALoader.tgz")
sha256sums=('82c8d594c66bc4df4288d6081362c50605f3e7329da83f6f5ad7087088c38a4b')
prepare() {
sed -i 's|MODE="664", GROUP="plugdev"|MODE="666"|g' "${srcdir}/etc/udev/rules.d/99-openfpgaloader.rules"
}
package() {
install -Dm755 "${srcdir}/usr/local/bin/openFPGALoader" "${pkgdir}/usr/bin/openFPGALoader"
mkdir -p "${pkgdir}/usr/share"
mv "${srcdir}/usr/local/share/openFPGALoader" "${pkgdir}/usr/share/openFPGALoader"
install -Dm644 "${srcdir}/etc/udev/rules.d/99-openfpgaloader.rules" "${pkgdir}/usr/lib/udev/rules.d/99-openfpgaloader.rules"
}
|