From f9626af9a1f54f64dbf6a55a8b5bc55a431aef9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Sat, 13 Jul 2024 12:56:27 +0300 Subject: [PATCH] avrdude 1.7.3 --- avrdude/alr.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 avrdude/alr.sh diff --git a/avrdude/alr.sh b/avrdude/alr.sh new file mode 100644 index 0000000..a8a9d0f --- /dev/null +++ b/avrdude/alr.sh @@ -0,0 +1,49 @@ +name='avrdude' +epoch='1' +version='7.3' +release='1' +desc='Download/upload/manipulate the ROM and EEPROM contents of AVR microcontrollers' +homepage='https://github.com/avrdudes/avrdude/' +maintainer="Евгений Храмов " +architectures=('amd64') +license=('GPL') +provides=('avrdude') +conflicts=('avrdude' 'avrdude-git') + +deps=( + 'elfutils' + 'hidapi' + 'libftdi' + 'libusb-compat-0.1' + 'readline' +) + +build_deps=( + 'cmake' + 'ninja-build' + 'flex' + 'bison' +) + +sources=("https://github.com/avrdudes/avrdude/archive/refs/tags/v${version}.tar.gz") +checksums=('SKIP') + +build() { + cd ${name}-${version} + + cmake -B build \ + -G Ninja \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_SYSCONFDIR=/etc \ + -D CMAKE_BUILD_TYPE=RelWithDebInfo \ + -D BUILD_SHARED_LIBS=1 \ + -D HAVE_LINUXGPIO=1 \ + -D HAVE_LINUXSPI=1 + ninja -C build +} + +package() { + cd ${name}-${version} + + DESTDIR="${pkgdir}" ninja -C build install +}