PKGBUILD 933 B

1234567891011121314151617181920212223242526272829303132
  1. # Barebox: am335x
  2. # Contributor: Denis Carikli <GNUtoo@cyberdimension.org>
  3. # Maintainer: Parabola Hackers <dev@lists.parabola.nu>
  4. _pkgname=barebox
  5. pkgname=barebox-tools
  6. pkgver=2019.02.0
  7. pkgrel=1
  8. pkgdesc='Barebox bootloader utility tools'
  9. arch=('armv7h' 'i686' 'armv7h')
  10. makedepends=('lzop')
  11. url="http://barebox.org/"
  12. license=('GPL2')
  13. source=("http://barebox.org/download/${_pkgname}-${pkgver}.tar.bz2")
  14. sha512sums=('648827efeec7b2591eaf43daf98368be1902e3f8157c8acd88b9f103078e9989bb158d81eda013e360d6dfdfbb3c7aae0e334fce957663b72ca46f419c33e981')
  15. build() {
  16. cd "${_pkgname}-${pkgver}"
  17. unset CFLAGS CXXFLAGS LDFLAGS
  18. yes '' | make config
  19. make scripts
  20. }
  21. package() {
  22. cd "${_pkgname}-${pkgver}"
  23. install -d "${pkgdir}/usr/bin/"
  24. install -m755 -t "${pkgdir}/usr/bin/" "scripts/bareboxenv"
  25. for file in kernel-install mkimage netconsole ; do
  26. install -m755 "scripts/${file}" "${pkgdir}/usr/bin/barebox-${file}"
  27. done
  28. }