2010-05-22 00:27:55 +04:00
|
|
|
|
2010-06-28 06:51:40 +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"
|
2010-06-23 18:55:55 +04:00
|
|
|
license=(MIT)
|
|
|
|
arch=(i686 x86_64)
|
2010-06-28 01:47:45 +04:00
|
|
|
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=()
|
|
|
|
|
2010-06-23 18:55:55 +04:00
|
|
|
FORCE_VER=$(hg log -r . --template {rev})
|
2010-05-22 00:27:55 +04:00
|
|
|
|
2010-06-28 01:47:45 +04:00
|
|
|
_make() {
|
2010-05-22 00:27:55 +04:00
|
|
|
cd $startdir
|
2010-06-28 01:47:45 +04:00
|
|
|
make PREFIX=/usr \
|
|
|
|
PYPREFIX=--prefix=/usr \
|
|
|
|
ETC=/etc \
|
|
|
|
DESTDIR="$pkgdir" \
|
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
_make "${flags[@]}" || return 1
|
|
|
|
}
|
2010-05-22 00:27:55 +04:00
|
|
|
|
2010-06-28 01:47:45 +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" \
|
2010-06-28 01:47:45 +04:00
|
|
|
"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
|
|
|
|
2010-06-23 18:55: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
|
|
|
}
|
|
|
|
|
2010-06-28 06:51:40 +04:00
|
|
|
package_python-pyxp-hg() {
|
2010-07-07 08:37:58 +04:00
|
|
|
pkgdesc="Python 9P client library"
|
2010-06-28 01:47:45 +04:00
|
|
|
arch=(any)
|
|
|
|
depends=(python)
|
|
|
|
_make -C alternative_wmiircs/python pyclean pyxp.install
|
|
|
|
}
|
|
|
|
|
2010-06-28 06:51:40 +04:00
|
|
|
package_python-pygmi-hg() {
|
2010-07-07 08:37:58 +04:00
|
|
|
pkgdesc="Python wmii interaction library"
|
2010-06-28 01:47:45 +04:00
|
|
|
arch=(any)
|
2010-06-28 06:51:40 +04:00
|
|
|
depends=(python-pyxp-hg)
|
2010-06-28 01:47:45 +04:00
|
|
|
_make -C alternative_wmiircs/python pyclean pygmi.install
|
|
|
|
}
|
|
|
|
|