Advertisement
Guest User

openbox-patched pkgbuild

a guest
Nov 10th, 2022
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. # Maintainer: Dylan Araps <dylan.araps@gmail.com>
  2. #
  3. # Below are the maintainers and contributors of the official
  4. # Arch package that this PKGBUILD is based on.
  5. #
  6. # Maintainer: Florian pritz <bluewind@xinu.at>
  7. # Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
  8. # Contributor: Brad Fanella <bradfanella@archlinux.us>
  9. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  10. # Contributor: tobias <tobias@archlinux.org>
  11.  
  12. pkgname=openbox-patched
  13. _pkgname=openbox
  14. pkgver=3.6.1
  15. pkgrel=4
  16. pkgdesc='Openbox with Rounded Corners patch and anything else I deem useful.'
  17. arch=('i686' 'x86_64')
  18. url='http://openbox.org'
  19. license=('GPL')
  20. provides=('libobrender.so' $_pkgname)
  21. conflicts=($_pkgname)
  22. depends=('startup-notification' 'libxml2' 'libxinerama' 'libxrandr'
  23. 'libxcursor' 'pango' 'imlib2' 'librsvg' 'libsm')
  24. optdepends=('plasma-workspace: for the KDE/Openbox xsession'
  25. 'python2-xdg: for the openbox-xdg-autostart script')
  26. groups=('lxde' 'lxde-gtk3' 'lxqt')
  27. backup=('etc/xdg/openbox/menu.xml'
  28. 'etc/xdg/openbox/rc.xml'
  29. 'etc/xdg/openbox/autostart'
  30. 'etc/xdg/openbox/environment')
  31. source=("http://openbox.org/dist/openbox/${_pkgname}-${pkgver}.tar.gz"
  32. "openbox-3.5.0-title-matching.patch"
  33. "openbox-3.5.0-which-2.20.patch"
  34. "openbox-3.6.2-rounded-corners.patch"
  35. "openbox-3.6.2-fix-out-of-bounds.patch")
  36. md5sums=('b72794996c6a3ad94634727b95f9d204'
  37. '0a11d7149da210a31ef88f8a9c717711'
  38. '5be4554431e555084026631898f167aa'
  39. '3f78814d3efb46e8242cf3674548e358'
  40. '4c28a1482a2aeb58415cec39f7f3a694')
  41. install="${pkgname}.install"
  42.  
  43. prepare() {
  44. cd "${_pkgname}-${pkgver}"
  45.  
  46. patch -Np1 -i "${srcdir}/openbox-3.5.0-title-matching.patch" # OB#5277
  47. patch -Np1 -i "${srcdir}/openbox-3.5.0-which-2.20.patch" # FS#11455
  48.  
  49. # https://forums.bunsenlabs.org/viewtopic.php?pid=46711#p46711
  50. patch -Np1 -i "${srcdir}/openbox-3.6.2-rounded-corners.patch"
  51.  
  52. # https://github.com/danakj/openbox/pull/26
  53. patch -Np1 -i "${srcdir}/openbox-3.6.2-fix-out-of-bounds.patch"
  54.  
  55. sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \
  56. data/autostart/openbox-xdg-autostart
  57. }
  58.  
  59. build() {
  60. cd "${_pkgname}-${pkgver}"
  61.  
  62. ./configure \
  63. --prefix=/usr \
  64. --with-x \
  65. --enable-startup-notification \
  66. --sysconfdir=/etc \
  67. --libexecdir=/usr/lib/openbox
  68. make
  69. }
  70.  
  71. package() {
  72. cd "${_pkgname}-${pkgver}"
  73. make DESTDIR="$pkgdir" install
  74.  
  75. # GNOME Panel is no longer available in the official repositories
  76. rm -r "${pkgdir}/usr/bin/"{gdm-control,gnome-panel-control,openbox-gnome-session} \
  77. "${pkgdir}/usr/share/gnome"{,-session} \
  78. "${pkgdir}/usr/share/man/man1/openbox-gnome-session.1" \
  79. "${pkgdir}/usr/share/xsessions/openbox-gnome.desktop"
  80.  
  81. sed -i 's:startkde:/usr/bin/\0:' \
  82. "${pkgdir}/usr/share/xsessions/openbox-kde.desktop"
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement