-
Notifications
You must be signed in to change notification settings - Fork 13
/
PKGBUILD
55 lines (46 loc) · 1.48 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
pkgname=(wmii-hg python-pyxp-hg python-pygmi-hg)
pkgver=2755
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" \
"${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
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() {
pkgdesc="Python 9P client library"
arch=(any)
depends=(python)
_make -C alternative_wmiircs/python pyclean pyxp.install
}
package_python-pygmi-hg() {
pkgdesc="Python wmii interaction library"
arch=(any)
depends=(python-pyxp-hg)
_make -C alternative_wmiircs/python pyclean pygmi.install
}