[arch-commits] Commit in openfpgaloader/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Jul 11 12:52:39 UTC 2020


    Date: Saturday, July 11, 2020 @ 12:52:39
  Author: ffy00
Revision: 663258

upgpkg: openfpgaloader 0.1-1

Added:
  openfpgaloader/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-11 12:52:39 UTC (rev 663258)
@@ -0,0 +1,42 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=openFPGALoader
+pkgname=openfpgaloader
+pkgver=0.1
+pkgrel=1
+pkgdesc='Universal utility for programming FPGA'
+arch=('x86_64')
+url='https://github.com/trabucayre/openFPGALoader'
+license=('AGPL')
+depends=('libftdi' 'libusb' 'libudev.so')
+makedepends=('cmake')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('0a2f8e831bf7f2c623d6c7253c4bb7a77257d45add987a2dbd1a74c2422d823d1ce46574973a59921bd9ea4beb33b0cff02610d41abd28af2c5a0ebcb7db8e4f')
+
+prepare() {
+  sed -i 's|MODE="664", GROUP="plugdev"|MODE="666"|g' $_pkgname-$pkgver/99-openfpgaloader.rules
+}
+
+build() {
+  mkdir -p $_pkgname-$pkgver/build
+  cd $_pkgname-$pkgver/build
+
+  export CFLAGS+=" ${CPPFLAGS}"
+  export CXXFLAGS+=" ${CPPFLAGS}"
+
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=None \
+    -DENABLE_UDEV=True
+
+  make
+}
+
+package() {
+  cd $_pkgname-$pkgver/build
+
+  make DESTDIR="$pkgdir" install
+
+  install -Dm 644 ../99-openfpgaloader.rules "$pkgdir"/usr/lib/udev/rules.d/99-openfpgaloader.rules
+}
+


More information about the arch-commits mailing list