blob: 0abf1f34be8fb8905fcc8c0c60fc78d3ad0baedc (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# Submitter: Ecmel Ercan <ecmel dot ercan at gmail dot com>
# Contributor: Vain <aurmaint1 on host: uninformativ dot de>
#
# New Maintainer: BlindPenguin <ferdinand holzner at gmail dot com>
#
pkgname=cdesktopenv
pkgver=2.2.0d
pkgrel=1
pkgdesc="CDE - Common Desktop Environment"
url="http://sourceforge.net/projects/cdesktopenv/"
arch=('i686' 'x86_64') # Some parts of CDE are not stable on x86_64 yet.
license=('LGPL2')
options=(!strip !zipman)
depends=(openmotif xbitmaps rpcbind mksh ncurses)
makedepends=(tcl ncompress)
optdepends=('xorg-fonts-100dpi: additional fonts'
'cups: for printing support'
'xinetd: for rpc services')
backup=('etc/dt/config/xfonts/C/fonts.alias')
source=("http://downloads.sourceforge.net/$pkgname/cde-src-$pkgver-beta.tar.gz"
'dtlogin.service'
'fonts.alias'
'fonts.dir'
'cde.desktop'
'startxsession.sh')
md5sums=('6ebda6347706c2aac361e399acad2120'
'18f9ef4643ff7ed6637907f5cbdabecf'
'5cc80c2851ea90b94e94b0c5d92d81fb'
'897316929176464ebc9ad085f31e7284'
'f4c8125c54dbed1e91ce859b7ad6a365'
'2e5557241915e4c2761ba136dbcba469')
build() {
cd "$srcdir/cde-$pkgver/"
sed -e '1i #define FILE_MAP_OPTIMIZE' -i programs/dtfile/Utils.c
cat >> config/cf/site.def <<EOF
#define KornShell /bin/mksh
#define CppCmd cpp
#define YaccCmd bison -y
#define HasTIRPCLib YES
#define HasZlib YES
#define DtLocalesToBuild
EOF
mkdir -p imports/x11/include
ln -sf /usr/include/X11 imports/x11/include/
(
export LANG=C
export LC_ALL=C
export IMAKECPP=cpp
make -j1 World
)
sed -e "s:mkProd -D :&$pkgdir:" -i admin/IntegTools/dbTools/installCDE
}
package() {
cd "$srcdir/cde-$pkgver/admin/IntegTools/dbTools/"
(
export LANG=C
export LC_ALL=C
export INSTALL_LOCATION="$pkgdir/usr/dt"
export LOGFILES_LOCATION="$pkgdir/var/dt"
export CONFIGURE_LOCATION="$pkgdir/etc/dt"
./installCDE -s "$srcdir/cde-$pkgver"
)
cd "$pkgdir/var/dt/"
chmod 755 .
chown bin .
chgrp bin .
mkdir -p appconfig/appmanager
mkdir -p tmp
chmod -R 755 *
chown -R bin *
chgrp -R bin *
cd "$pkgdir/etc/dt/"
chmod 755 .
mkdir -p appconfig/appmanager/C
mkdir -p appconfig/help/C
mkdir -p appconfig/icons/C
mkdir -p appconfig/types/C
mkdir -p config/Xsession.d
mkdir -p config/xfonts/C
chmod -R 755 *
chmod a+x $srcdir/startxsession.sh
install -m644 "$srcdir"/fonts.{alias,dir} "$pkgdir/etc/dt/config/xfonts/C/"
install -Dm644 "$srcdir/cde.desktop" \
"$pkgdir/usr/share/xsessions/cde.desktop"
install -Dm644 "$srcdir/dtlogin.service" \
"$pkgdir/usr/lib/systemd/system/dtlogin.service"
install -Dm755 "$srcdir/cde-$pkgver/contrib/rc/linux/dtlogin" \
"$pkgdir/etc/rc.d/dtlogin"
install -dm755 "$pkgdir/usr/spool"
install -Dm644 "$srcdir/cde-$pkgver/contrib/xinetd/cmsd" \
"$pkgdir/etc/xinetd.d/cmsd"
install -Dm644 "$srcdir/cde-$pkgver/contrib/xinetd/ttdbserver" \
"$pkgdir/etc/xinetd.d/ttdbserver"
install -Dm644 "$srcdir/startxsession.sh" \
"$pkgdir/usr/bin/startxsession.sh"
}
|