diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = micronucleus-git pkgdesc = ATTiny usb bootloader with a strong emphasis on bootloader compactness pkgver = 2.04.r6.g4d2481d - pkgrel = 1 + pkgrel = 2 url = https://github.com/micronucleus/micronucleus arch = x86_64 arch = i686 @@ -4,7 +4,7 @@ pkgname=micronucleus-git _gitname=micronucleus pkgver=2.04.r6.g4d2481d -pkgrel=1 +pkgrel=2 pkgdesc="ATTiny usb bootloader with a strong emphasis on bootloader compactness" arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') url="https://github.com/micronucleus/micronucleus" @@ -22,6 +22,14 @@ pkgver() { git describe --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } +prepare() { + # Upstream set static compilation in Makefile, libusb.a is required for it. + # [Static binaries for MacOS and linux @stonehippo](https://github.com/micronucleus/micronucleus/commit/44a7664bd4c86b86596fe13bcdae7428fe1c4907) + # but Arch Linux libusb-compat package doesn't provide static library, so revert to origion + # https://github.com/archlinux/svntogit-packages/blob/ddec4746eea5ff836dddc80b8564e3e2677f3520/libusb-compat/trunk/PKGBUILD + sed -i 's# -static##g' ${srcdir}/${_gitname}/commandline/Makefile +} + build() { cd "$_gitname/commandline" |