# Maintainer: Michael Zimmermann # Contributor: Emil Renner Berthing # Contributor: yhfudev # Contributor: veox # Contributor: Nick Østergaard # Contributor: Bartłomiej Piotrowski # Contributor: Matthias Bauch # Contributor: Laszlo Papp # Contributor: Samuel Tardieu pkgname=esp32-openocd pkgver=0.10.0.dev.g77b10c51 pkgrel=1 pkgdesc='Fork of OpenOCD that has ESP32 support' arch=('i686' 'x86_64' 'arm') url='https://github.com/espressif/openocd-esp32' license=('GPL') depends=('libftdi' 'libftdi-compat' 'libusb' 'libusb-compat' 'hidapi' ) makedepends=('git' 'automake>=1.11' 'autoconf' 'libtool' 'tcl') options=(!strip) source=( "$pkgname::git+https://github.com/espressif/openocd-esp32.git" ) md5sums=( 'SKIP' ) sha1sums=( 'SKIP' ) pkgver() { cd "$srcdir/$pkgname" local ver="$(cat configure.ac | grep AC_INIT | cut -d'[' -f3 | cut -d']' -f1)" local rev="$(./guess-rev.sh)" echo "${ver/-/.}${rev/-/.}" } prepare() { cd "$srcdir/$pkgname" git submodule init git submodule update } build() { cd "$srcdir/$pkgname" ./bootstrap ./configure \ --prefix=/usr \ --program-prefix=${pkgname%openocd} \ --disable-werror \ --with-gnu-ld make pkgdatadir="/usr/share/$pkgname" } package() { cd "$srcdir/$pkgname" make pkgdatadir="/usr/share/$pkgname" DESTDIR="$pkgdir" install rm -r "$pkgdir/usr/share/info" }