Advertisement
Guest User

psensor: dont pick up appindicator-gtk2

a guest
Oct 2nd, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. diff --git a/.gitignore b/.gitignore
  2. index 05c6d4d..c7edcf6 100644
  3. --- a/.gitignore
  4. +++ b/.gitignore
  5. @@ -1,4 +1,6 @@
  6. -*
  7. -!.gitignore
  8. -!.SRCINFO
  9. -!PKGBUILD
  10. +# makepkg folders
  11. +src
  12. +pkg
  13. +
  14. +# generated packages
  15. +*.tar.*
  16. diff --git a/PKGBUILD b/PKGBUILD
  17. index 915f484..112d030 100644
  18. --- a/PKGBUILD
  19. +++ b/PKGBUILD
  20. @@ -4,7 +4,7 @@
  21.  
  22. pkgname=psensor
  23. pkgver=1.1.5
  24. -pkgrel=1
  25. +pkgrel=2
  26. pkgdesc="A graphical hardware temperature monitor for Linux"
  27. arch=('i686' 'x86_64')
  28. url="http://wpitchoune.net/psensor"
  29. @@ -18,14 +18,22 @@ optdepends=('asciidoc: required to produce the HTML version of the FAQ'
  30. 'json-c: required for remote monitoring'
  31. 'curl: required for remote monitoring'
  32. 'libgtop: required for CPU usage')
  33. -conflicts=('libappindicator-gtk2' 'libappindicator-activate-gtk2' 'libappindicator-gtk2-ubuntu' 'lib32-libappindicator-gtk2')
  34. -source=("http://wpitchoune.net/$pkgname/files/$pkgname-$pkgver.tar.gz")
  35. -md5sums=('db6fa7496576b63979c1c6e5e707142e')
  36. +source=("http://wpitchoune.net/$pkgname/files/$pkgname-$pkgver.tar.gz"
  37. + "remove appindicator-gtk2 checks.patch")
  38. +md5sums=('db6fa7496576b63979c1c6e5e707142e'
  39. + 'acfbe3bd06ced3af51831a84608366c6')
  40. +
  41. +prepare() {
  42. + cd "$srcdir/$pkgname-$pkgver"
  43. + patch -p1 -i "$srcdir/remove appindicator-gtk2 checks.patch"
  44. + autoreconf --force --install
  45. +}
  46.  
  47. build() {
  48. cd "$srcdir/$pkgname-$pkgver"
  49. ./configure --prefix=/usr
  50. - make
  51. + # running autoreconf apparently breaks the parallel build with appindicator, so serialize explicitly
  52. + make --jobs=1
  53. }
  54.  
  55. package() {
  56. diff --git a/remove appindicator-gtk2 checks.patch b/remove appindicator-gtk2 checks.patch
  57. new file mode 100644
  58. index 0000000..0cbc3aa
  59. --- /dev/null
  60. +++ b/remove appindicator-gtk2 checks.patch
  61. @@ -0,0 +1,26 @@
  62. +diff --git a/configure.ac b/configure.ac
  63. +index 803214d..0be0f46 100644
  64. +--- a/configure.ac
  65. ++++ b/configure.ac
  66. +@@ -110,21 +110,6 @@ PKG_CHECK_MODULES(APPINDICATOR, appindicator3-0.1,
  67. + [AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator3-0.1])],
  68. + [AC_MSG_WARN(AppIndicator 3-0.1 not present")])
  69. +
  70. +-if test "$APPINDICATOR_LIBS" == ""; then
  71. +- PKG_CHECK_MODULES(APPINDICATOR,
  72. +- appindicator-0.1 <= 0.2.9 ,
  73. +- [AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator 0.2.9])
  74. +- AC_DEFINE([HAVE_APPINDICATOR_029],[1],[Use AppIndicator 0.2.9])
  75. +- ],
  76. +- [AC_MSG_WARN(AppIndicator 0.2.9 not present")])
  77. +-fi
  78. +-
  79. +-if test "$APPINDICATOR_LIBS" == ""; then
  80. +- PKG_CHECK_MODULES(APPINDICATOR,
  81. +- appindicator-0.1 > 0.2.9,
  82. +- [AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator > 0.2.9])],
  83. +- [AC_MSG_WARN("AppIndicator > 0.2.9 not present")])
  84. +-fi
  85. + AM_CONDITIONAL(APPINDICATOR, test -n "$APPINDICATOR_LIBS")
  86. + AC_SUBST(APPINDICATOR_CFLAGS)
  87. + AC_SUBST(APPINDICATOR_LIBS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement