Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: N30N <archlinux@alunamation.com>
- # Contributor: Anthony Martin <ality@pbrane.org>
- # Contributer: thomasd <thdahms@gmx.de>
- # Contributer: karnath <karnath@pop3.ru>
- # Contributer: MrBougo <bougospam@gmail.com>
- # Contributor: Wolf Ramovsky <wolf.ramovsky@gmail.com>
- # Contributor: Benjamin van der Burgh <benjaminvdb@gmail.com>
- pkgname="wmii-hg"
- pkgver=2813
- pkgrel=1
- pkgdesc="The latest hg pull of wmii, a lightweight, dynamic window manager for X11"
- arch=('i686' 'x86_64')
- license=('MIT')
- url="http://wmii.suckless.org/"
- depends=('libxft' 'libxrandr' 'libxinerama' 'dash')
- options=('!makeflags')
- makedepends=("mercurial" "txt2tags" "libixp-hg" "libxft")
- optdepends=("plan9port: for use of the alternative plan9port wmiirc"
- "python2: for use of the alternative Python wmiirc"
- "ruby-rumai: for use of the alternative Ruby wmiirc"
- "xorg-xmessage: for use of the default wmiirc configs")
- provides=("wmii")
- conflicts=("wmii")
- source=("hg+https://wmii.googlecode.com/hg" "fix-freetype-include.patch")
- md5sums=("SKIP" "97febd4a1df80aa4afbd126de1f36496")
- _hgroot="https://wmii.googlecode.com/hg"
- _hgrepo="wmii"
- pkgver() {
- cd hg
- hg identify -ni | awk 'BEGIN{OFS=".";} {print $2,$1}'
- }
- build() {
- cd ${srcdir}/hg
- patch -Np1 -i ${srcdir}/fix-freetype-include.patch
- sed -i 's|PREFIX = /usr/local|PREFIX = /usr|' config.mk
- sed -i 's|ETC = $(PREFIX)/etc|ETC = /etc|' config.mk
- sed -i 's# !=#!=#' mk/hdr.mk
- sed -i 's#env python#env python2#' alternative_wmiircs/python/wmiirc
- echo 'LIBS+=-lXrender -lX11 -ldl' >>config.mk
- export MAKEFLAGS="-j1"
- export LDFLAGS="$(echo ${LDFLAGS} | sed -r "s/(^|,)--as-needed(,|$)/ /")"
- make
- }
- package() {
- cd ${srcdir}/hg
- make DESTDIR=${pkgdir} install
- install -Dm644 debian/file/wmii.desktop ${pkgdir}/usr/share/xsessions/${pkgname}.desktop
- install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
- }
- # vim: set noet ff=unix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement