Last active
May 15, 2024 10:32
-
-
Save fiffy326/3a09451d7b581e086392f1021b52c673 to your computer and use it in GitHub Desktop.
PKGBUILD for the ESP8266-RTOS-SDK AUR package with the ncurses library errors fixed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: srtlg <mirko.scholz9@gmail.com> | |
pkgname=esp8266-rtos-sdk | |
pkgver=3.4 | |
pkgrel=4 | |
pkgdesc="ESP8266 RTOS SDK" | |
arch=('x86_64') | |
url="https://github.com/espressif/ESP8266_RTOS_SDK" | |
license=('Espressif MIT') | |
depends=(python python-click python-pyserial python-cryptography python-pyparsing python-future python-pyelftools ncurses) | |
optdepends=('xtensa-lx106-elf-gcc-bin: Toolchain for the ESP8266') | |
makedepends=(gcc gperf) | |
options=(!strip) | |
source=("https://github.com/espressif/ESP8266_RTOS_SDK/releases/download/v${pkgver}/ESP8266_RTOS_SDK-v${pkgver}.zip" | |
"https://aur.archlinux.org/cgit/aur.git/tree/esp8266-rtos-sdk.sh" | |
"ncurses-fix.patch::https://patch-diff.githubusercontent.com/raw/espressif/ESP8266_RTOS_SDK/pull/1280.patch") | |
sha256sums=('1e6c0da481f844de8eeb85dfb2db9d7c130cffc2047549eb34b3deaf9bd515c1' | |
'9228a3f37b9d50c05e51a110aebf9bce7c007c977055a75bd8f8c4c98d7e8d90' | |
'88798ec310bcf78f7945f3e90f0f4ff312fd6c6115100262e121f3937d78452c') | |
build() { | |
# fix ncurses library errors | |
git apply --directory=ESP8266_RTOS_SDK ncurses-fix.patch | |
# enable 'make menuconfig' | |
make -C ESP8266_RTOS_SDK/tools/kconfig | |
strip -s ESP8266_RTOS_SDK/tools/kconfig/*conf-idf | |
rm -rf ESP8266_RTOS_SDK/tools/kconfig/*.[od] | |
rm -rf ESP8266_RTOS_SDK/tools/kconfig/lxdialog/*.[od] | |
# tools/ldgen/test has lots of failures | |
sed -i -e 's/pyparsing.*/pyparsing/' ESP8266_RTOS_SDK/requirements.txt | |
} | |
package() { | |
install -d "$pkgdir"/opt/$pkgname | |
cp -af ESP8266_RTOS_SDK/* "$pkgdir"/opt/$pkgname | |
install -Dm755 "$srcdir"/esp8266-rtos-sdk.sh "$pkgdir"/etc/profile.d/esp8266-rtos-sdk.sh | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment