blob: 24be5d84beb4179fd9de2f6f0d5cb75bf24031e5 (
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
|
# $Id: PKGBUILD 35052 2010-12-14 22:08:35Z jlichtblau $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
pkgname=qingy
pkgver=1.0.0
pkgrel=1
pkgdesc="A DirectFB getty replacement"
arch=('i686' 'x86_64')
url="http://qingy.sourceforge.net/"
license=('GPL')
depends=('directfb' 'pam' 'openssl' 'ncurses' 'libxss')
backup=('etc/qingy/settings' 'etc/qingy/welcomes')
options=('!libtool')
install=$pkgname.install
source=(http://downloads.sourceforge.net/sourceforge/qingy/${pkgname}-${pkgver}.tar.bz2 \
qingy.logrotate README)
md5sums=('1e0912655e240adfd0ce5ced30bbc685'
'a9bdfd0ac9f29380eafa97a4a056789d'
'f54865d71ea34e2f68e53ef60248701b')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i 's|/usr/share/xsessions|/etc/X11/sessions|' src/libraries/session.c
sed -i 's|/usr/X11R6/bin|/usr/X11R6/bin:/sbin:/usr/sbin:/opt/kde/bin:/opt/plt/bin:/usr/share/eclipse:/opt/java/bin:/opt/java/jre/bin:/opt/openoffice/program:/opt/NX/bin:/opt/qt/bin:/opt/plan9/bin:/opt/firebird/bin:/opt/glest/bin:/opt/grass/bin:/opt/maven/bin:/usr/share/netbeans/bin:/opt/qgis/bin:/opt/texlive/bin:/opt/torcs/bin:/opt/wildfire/bin|' src/libraries/session.c
./configure --prefix=/usr --sbindir=/sbin --sysconfdir=/etc \
--disable-optimizations --enable-pam \
--disable-static-build --enable-gpm-lock --enable-emacs
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -d "${pkgdir}/var/lib/qingy"
install -D -m644 "${srcdir}/qingy.logrotate" "${pkgdir}/etc/logrotate.d/qingy"
install -D -m644 "${srcdir}/README" "${pkgdir}/usr/share/doc/qingy/README"
# fix settings for Arch
sed -i 's|/var/lib/misc|/var/lib/qingy|' "${pkgdir}/etc/qingy/settings"
sed -i 's|/usr/X11R6/bin/XFree86|/usr/bin/Xorg|' "${pkgdir}/etc/qingy/settings"
sed -i 's|/usr/X11R6/bin/xinit|/usr/bin/xinit|' "${pkgdir}/etc/qingy/settings"
sed -i 's|session optional|#session optional|' "${pkgdir}/etc/pam.d/qingy"
}
|