Advertisement
Guest User

Untitled

a guest
Apr 12th, 2013
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. # Maintainer: N30N <archlinux@alunamation.com>
  2. # Contributor: Anthony Martin <ality@pbrane.org>
  3. # Contributer: thomasd <thdahms@gmx.de>
  4. # Contributer: karnath <karnath@pop3.ru>
  5. # Contributer: MrBougo <bougospam@gmail.com>
  6. # Contributor: Wolf Ramovsky <wolf.ramovsky@gmail.com>
  7. # Contributor: Benjamin van der Burgh <benjaminvdb@gmail.com>
  8.  
  9. pkgname="wmii-hg"
  10. pkgver=2813
  11. pkgrel=1
  12. pkgdesc="The latest hg pull of wmii, a lightweight, dynamic window manager for X11"
  13. arch=('i686' 'x86_64')
  14. license=('MIT')
  15. url="http://wmii.suckless.org/"
  16. depends=('libxft' 'libxrandr' 'libxinerama' 'dash')
  17. options=('!makeflags')
  18. makedepends=("mercurial" "txt2tags" "libixp-hg" "libxft")
  19. optdepends=("plan9port: for use of the alternative plan9port wmiirc"
  20. "python2: for use of the alternative Python wmiirc"
  21. "ruby-rumai: for use of the alternative Ruby wmiirc"
  22. "xorg-xmessage: for use of the default wmiirc configs")
  23. provides=("wmii")
  24. conflicts=("wmii")
  25. source=("hg+https://wmii.googlecode.com/hg" "fix-freetype-include.patch")
  26. md5sums=("SKIP" "97febd4a1df80aa4afbd126de1f36496")
  27.  
  28. _hgroot="https://wmii.googlecode.com/hg"
  29. _hgrepo="wmii"
  30.  
  31. pkgver() {
  32. cd hg
  33. hg identify -ni | awk 'BEGIN{OFS=".";} {print $2,$1}'
  34. }
  35.  
  36. build() {
  37. cd ${srcdir}/hg
  38. patch -Np1 -i ${srcdir}/fix-freetype-include.patch
  39.  
  40. sed -i 's|PREFIX = /usr/local|PREFIX = /usr|' config.mk
  41. sed -i 's|ETC = $(PREFIX)/etc|ETC = /etc|' config.mk
  42. sed -i 's# !=#!=#' mk/hdr.mk
  43. sed -i 's#env python#env python2#' alternative_wmiircs/python/wmiirc
  44. echo 'LIBS+=-lXrender -lX11 -ldl' >>config.mk
  45.  
  46. export MAKEFLAGS="-j1"
  47. export LDFLAGS="$(echo ${LDFLAGS} | sed -r "s/(^|,)--as-needed(,|$)/ /")"
  48. make
  49. }
  50.  
  51. package() {
  52.  
  53. cd ${srcdir}/hg
  54. make DESTDIR=${pkgdir} install
  55. install -Dm644 debian/file/wmii.desktop ${pkgdir}/usr/share/xsessions/${pkgname}.desktop
  56. install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
  57. }
  58.  
  59. # vim: set noet ff=unix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement