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 +}