wmii/PKGBUILD
2010-06-27 22:51:40 -04:00

54 lines
1.4 KiB
Bash

pkgname=(wmii-hg python-pyxp-hg python-pygmi-hg)
pkgver=2746
pkgrel=1
pkgdesc="The latest hg pull of wmii, a lightweight, dynamic window manager for X11"
url="http://wmii.suckless.org"
license=(MIT)
arch=(i686 x86_64)
makedepends=(mercurial python "libixp-hg>="$(sed -rn <mk/wmii.mk 's/.*IXP_NEEDAPI=([0-9]+).*/\1/p'))
options=(!strip)
source=()
FORCE_VER=$(hg log -r . --template {rev})
_make() {
cd $startdir
make PREFIX=/usr \
PYPREFIX=--prefix=/usr \
ETC=/etc \
DESTDIR="$pkgdir" \
"$@"
}
build() {
_make "${flags[@]}" || return 1
}
package_wmii-hg() {
depends=(libx11 libxinerama libxrandr)
optdepends=("plan9port: for use of the alternative plan9port wmiirc" \
"pygmi: for use of the alternative Python wmiirc" \
"ruby-rumai: for use of the alternative Ruby wmiirc" \
"libxft: for anti-aliased font support")
provides=(wmii)
conflicts=(wmii)
_make install PYMODULES= || return 1
install -m644 -D ./debian/file/wmii.desktop "$pkgdir/etc/X11/sessions/wmii.desktop"
install -m644 -D ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python-pyxp-hg() {
arch=(any)
depends=(python)
_make -C alternative_wmiircs/python pyclean pyxp.install
}
package_python-pygmi-hg() {
arch=(any)
depends=(python-pyxp-hg)
_make -C alternative_wmiircs/python pyclean pygmi.install
}