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
55
56
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=uwm-git
pkgver=0.32.6
pkgrel=1
pkgdesc="Micro (u) Window Manager"
arch=('i686' 'x86_64')
url="http://uwm.sourceforge.net/"
license=('AGPL3')
provides=('uwm')
conflicts=('uwm')
backup=(usr/share/X11/uwm/system.uwmrc)
depends=('xcb-util-renderutil' 'xcb-util-image' 'xcb-util-keysyms' 'bash' 'libpng' 'libjpeg' 'xcb-util-wm')
makedepends=('git' 'libx11')
source=("$pkgname::git://git.code.sf.net/p/uwm/code"
"arrayextern.patch"
"uwm.desktop")
md5sums=('SKIP'
'e808fdf6d91ad062d0234ee72f30e4e1'
'a16c73faeab8c1fc3c74f3320776789a')
pkgver() {
cd $pkgname
git describe --tags --always | sed 's,^[^0-9]*,,;s,-,.,g;s,\.g[a-f0-9]*$,,'
}
prepare() {
cd $pkgname
git submodule update --init --recursive
sed 's,/usr/local/etc/system.uwmrc,/usr/share/X11/uwm/system.uwmrc,' -i uwm.h
sed 's,/usr/local/etc/system.uwmrc,/usr/share/X11/uwm/system.uwmrc,' -i uwmrc.5
sed 's,/etc/system.uwmrc /usr/local/etc/system.uwmrc,/usr/share/X11/uwm/system.uwmrc,' -i uwm.1
cd core-array
# patch -Np1 <../../arrayextern.patch
}
build() {
cd $pkgname
make
make contrib/uwm-helper
}
package() {
cd $pkgname
install -Dm0755 uwm "$pkgdir/usr/bin/uwm"
install -Dm0755 contrib/uwm-helper "$pkgdir/usr/bin/uwm-helper"
install -Dm0644 uwm.1 "$pkgdir/usr/share/man/man1/uwm.1"
install -Dm0644 uwmrc.5 "$pkgdir/usr/share/man/man5/uwmrc.5"
install -Dm0644 contrib/uwmrc.example "$pkgdir/usr/share/X11/uwm/system.uwmrc"
install -Dm0644 contrib/uwm16x16.xpm "$pkgdir/usr/share/pixmaps/uwm16x16.xpm"
cd "$srcdir"
install -Dm0644 uwm.desktop "$pkgdir/usr/share/xsessions/uwm.desktop"
}
# vim: set sw=2 et:
|