PKGBUILD 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Maintainer: bill-auger <bill-auger@programmer.net>
  2. pkgname=wbar
  3. pkgver=2.3.4
  4. pkgrel=4
  5. pkgdesc="Minimalist quick-launch tool"
  6. arch=('i686' 'x86_64')
  7. license=('GPL')
  8. url=https://code.google.com/archive/p/wbar/
  9. depends=('imlib2')
  10. makedepends=('intltool' 'libglade')
  11. source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wbar/wbar-2.3.4.tgz
  12. wbar-dock.png
  13. remove_static_iterator.patch)
  14. sha256sums=('46a69849e4436529aefb5cfb2c94b520d05a53c237e7773b90207f67f97a93e3'
  15. '902dbf06f596bf4453e60b5caa5f173cfc2644dd054e27b50b7e028d0968edd0'
  16. 'c43d40965ef191ea41a4ee87ad71b7cc7459470f48424e2b82de0d67a8965b65')
  17. _build_dir=${pkgname}-${pkgver}
  18. prepare()
  19. {
  20. cd ${srcdir}/${_build_dir}
  21. sed -i 's|AM_INIT_AUTOMAKE(\[\(.*\)\])|AM_INIT_AUTOMAKE(\[\1subdir-objects \])|' ./configure.ac
  22. sed -i 's|\$(top_srcdir)/src/||g' ./src/Makefile.am
  23. sed -i 's|= PACKAGE_NAME" "DEFAULT_ARGV;|= PACKAGE_NAME " " DEFAULT_ARGV;|' ./src/core/Main.cc
  24. sed -i 's|= PACKAGE_NAME" "DEFAULT_ARGV;|= PACKAGE_NAME " " DEFAULT_ARGV;|' ./src/config/Functions.cc
  25. sed -i 's|("killall "PACKAGE_NAME)|("killall " PACKAGE_NAME)|' ./src/config/Run.cc
  26. sed -i 's| PIXMAPDIR"/"PACKAGE_NAME"| PIXMAPDIR "/" PACKAGE_NAME "|' ./src/config/Functions.cc
  27. # FIXME
  28. # /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:65:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved7’ [-Werror=parentheses]
  29. # /usr/include/gtk-2.0/gtk/gtkstatusicon.h:76:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Werror=parentheses]
  30. sed -i 's|-Werror \\|-Werror -Wno-error=parentheses \\|' ./src/Makefile.am
  31. patch -p1 < ${srcdir}/remove_static_iterator.patch
  32. }
  33. build()
  34. {
  35. cd ${srcdir}/${_build_dir}
  36. autoreconf -fiv
  37. ./configure
  38. make
  39. }
  40. package()
  41. {
  42. cd ${srcdir}/${_build_dir}
  43. make DESTDIR=${pkgdir} install
  44. install -d usr/share/pixmaps/wbar
  45. install -m 644 ${srcdir}/wbar-dock.png ${pkgdir}/usr/share/pixmaps/wbar/
  46. }