blob: 2c12ff117fd05b366fa10dbf95f32e28635f9dab (
plain)
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
|
# $Id$
# Maintainer: Daniel Isenmann <daniel@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=windowmaker
pkgver=0.95.6
pkgrel=1
pkgdesc="An X11 window manager with a NEXTSTEP look and feel"
arch=('i686' 'x86_64')
url="http://www.windowmaker.org/"
license=('GPL' 'custom')
depends=('libxinerama' 'libxrandr' 'libxmu' 'libpng' 'libxpm' 'libxft' 'libtiff' 'giflib')
source=(http://windowmaker.org/pub/source/release/WindowMaker-$pkgver.tar.gz
wmaker.desktop
giflib_510.diff)
install=wmaker.install
md5sums=('5b3cf9e6cd1f4066ffa5f2f22c25aee3'
'2fba97bebfd691836b92b8f0db79ff13'
'ac51e22a9d6a8d653cfa8cbcc6fea96e')
prepare() {
cd WindowMaker-$pkgver
#patch -Np0 -i ../wm-giflib.patch
# patch taken from NetBSD
patch -Np0 -i ../giflib_510.diff
autoreconf -fi
# fix some paths FS#3080 - ckeck also Gentoo ebuild
for file in WindowMaker/*menu* util/wmgenmenu.c; do
if [[ -r $file ]] ; then
sed -i -e "s:/usr/local/GNUstep/Applications/WPrefs.app:/usr/lib/GNUstep/Applications/WPrefs.app:g;" "$file"
sed -i -e "s:/usr/local/share/WindowMaker:/usr/share/WindowMaker:g;" "$file"
sed -i -e "s:/opt/share/WindowMaker:/usr/share/WindowMaker:g;" "$file"
fi;
done;
}
build() {
cd WindowMaker-$pkgver
[ -z "$LINGUAS" ] && export LINGUAS="`ls po/*.po | sed 's:po/\(.*\)\.po$:\1:'`"
./configure --prefix=/usr --sysconfdir=/etc --enable-xinerama \
--with-nlsdir=/usr/share/locale --with-gnustepdir=/usr/lib/GNUstep \
--enable-usermenu --enable-modelock --enable-xrandr
make
}
package() {
cd WindowMaker-$pkgver
make DESTDIR="$pkgdir" install
install -D -m644 COPYING.WTFPL "$pkgdir/usr/share/licenses/$pkgname/COPYING.WTFPL"
install -D -m644 ../wmaker.desktop "$pkgdir/usr/share/xsessions/wmaker.desktop"
}
|