PKGBUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Maintainer (Arch): Christian Rebischke <chris.rebischke@archlinux.org>
  2. # Contributor (Arch): Timothy Redaelli <timothy.redaelli@gmail.com>
  3. # Contributor (Arch): Andy Weidenbaum <archbaum@gmail.com>
  4. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  5. # Contributor: Márcio Silva <coadde@hyperbola.info>
  6. # parabola changes and rationale:
  7. # - replaced opencl-nvidia recommendation with opencl-mesa
  8. pkgname=bfgminer
  9. pkgver=5.5.0
  10. pkgrel=3
  11. pkgrel+=.parabola1
  12. pkgdesc="Bitcoin miner featuring overclocking, monitoring, fan speed control and remote management. For FPGA/GPU/CPU Bitcoin mining"
  13. pkgdesc+=", with opencl-mesa recommendation"
  14. arch=('x86_64')
  15. arch+=('i686' 'armv7h')
  16. depends=('curl' 'jansson' 'libevent' 'libmicrohttpd' 'libusb' 'lm_sensors')
  17. makedepends=('uthash' 'yasm')
  18. optdepends=('opencl-mesa: OpenCL implementation for AMD/ATI GPUs')
  19. url='https://bitcointalk.org/?topic=877081'
  20. license=('GPL3')
  21. source=("https://luke.dashjr.org/programs/bitcoin/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.txz"
  22. 'remove-dangerous-rpath.patch')
  23. sha512sums=('d1adae473e01fcf1cd0efde74d3e8ce10609e520397d688bf4e226c1113c1606c782e3cfdba6847f1a3886cac30de6b5baa03b731aca86287d53bf01ef705cdb'
  24. '087aa60d818ff37cb7a4edce7a34331a492b5e379a8e034d7a2e02b106bb6ea52b4ce6a1077f602987a2c30213bc185063990796a828ae95f60cff03c7a0bc3f')
  25. prepare() {
  26. cd "${pkgname}"-"${pkgver}"
  27. patch -p1 -i "${srcdir}"/remove-dangerous-rpath.patch
  28. }
  29. build() {
  30. cd "${pkgname}"-"${pkgver}"
  31. ./configure --prefix=/usr \
  32. --sbindir=/usr/bin \
  33. --enable-cpumining \
  34. --enable-bfsb \
  35. --enable-metabank \
  36. --enable-scrypt \
  37. --enable-opencl \
  38. --with-udevrulesdir=/usr/lib/udev/rules.d
  39. # --enable-knc (FS#33640)
  40. make
  41. }
  42. package() {
  43. cd "${pkgname}"-"${pkgver}"
  44. make DESTDIR="${pkgdir}" install
  45. }