# Contributor: Stefan Wagner # Maintainer: Stefan Wagner pkgname=avrdude pkgver=7.2 pkgrel=0 pkgdesc="Download/upload/manipulate the ROM and EEPROM contents of AVR microcontrollers" url="https://github.com/avrdudes/avrdude" arch="all" license="GPL-2.0-or-later" makedepends=" byacc cmake elfutils-dev flex hidapi-dev libftdi1-dev libgpiod-dev libusb-dev linux-headers samurai " subpackages="$pkgname-dev $pkgname-libs $pkgname-doc" source=" $pkgname-$pkgver.tar.gz::https://github.com/avrdudes/avrdude/archive/refs/tags/v$pkgver.tar.gz " options="!check" # no tests build() { CFLAGS="$CFLAGS -flto=auto" \ cmake -B build -G Ninja -Wno-dev \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_SYSCONFDIR=/etc \ -DHAVE_LINUXGPIO=ON \ -DHAVE_LINUXSPI=ON \ -DBUILD_SHARED_LIBS=ON cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 04d04492458bc1d183ad8ff403cf3d38f65f44bb992df589e8f49d28b5347eb63433568c95f5d575ae651be70d725d3f178175cd1fe6dcd46ec013c3fe3f2ab0 avrdude-7.2.tar.gz "