wmii/PKGBUILD

56 lines
1.5 KiB
Bash
Raw Normal View History

2010-05-22 00:27:55 +04:00
pkgname=(wmii-hg python-pyxp-hg python-pygmi-hg)
2010-07-07 07:09:53 +04:00
pkgver=2755
2010-05-22 00:27:55 +04:00
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)
2010-05-22 00:27:55 +04:00
source=()
FORCE_VER=$(hg log -r . --template {rev})
2010-05-22 00:27:55 +04:00
_make() {
2010-05-22 00:27:55 +04:00
cd $startdir
make PREFIX=/usr \
PYPREFIX=--prefix=/usr \
ETC=/etc \
DESTDIR="$pkgdir" \
"$@"
}
build() {
_make "${flags[@]}" || return 1
}
2010-05-22 00:27:55 +04:00
package_wmii-hg() {
depends=(libx11 libxinerama libxrandr)
optdepends=("plan9port: for use of the alternative plan9port wmiirc" \
2010-07-07 07:09:53 +04:00
"${pkgname[2]}: 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
2010-05-22 00:27:55 +04:00
install -m644 -D ./debian/file/wmii.desktop "$pkgdir/etc/X11/sessions/wmii.desktop"
install -m644 -D ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2010-05-22 00:27:55 +04:00
}
package_python-pyxp-hg() {
2010-07-07 08:37:58 +04:00
pkgdesc="Python 9P client library"
arch=(any)
depends=(python)
_make -C alternative_wmiircs/python pyclean pyxp.install
}
package_python-pygmi-hg() {
2010-07-07 08:37:58 +04:00
pkgdesc="Python wmii interaction library"
arch=(any)
depends=(python-pyxp-hg)
_make -C alternative_wmiircs/python pyclean pygmi.install
}