blob: 71df9861bc5892bcde716f620fe30812e5814658 (
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
|
# Maintainer: Vryali <vryali@gmail.com>
# Contributors: Maintainer: David Wu <xdavidwuph@gmail.com>
# Contributors: Christopher Pence <chris@pencels.net>
pkgname=xscreensaver-backends
_srcname=xscreensaver
pkgver=6.08
pkgrel=1
pkgdesc="Screensavers from XScreenSaver for common frontends"
arch=('i686' 'x86_64')
url="http://www.jwz.org/xscreensaver/"
license=('BSD')
conflicts=('xscreensaver' 'xscreensaver-hacks' 'mate-screensaver-hacks')
#depends=('libxmu' 'glu' 'libxi' 'gdk-pixbuf-xlib')
depends=('perl' 'gtk2' 'glu' 'gdk-pixbuf-xlib' 'libxt')
makedepends=('bc' 'intltool' 'libxslt' 'openmotif')
source=(http://www.jwz.org/xscreensaver/${_srcname}-${pkgver}.tar.gz
LICENSE
migrate-xscreensaver-config.sh
xscreensaver-config.xsl)
sha1sums=('a7e75a2ae1110354ffaa639f4c38ec0506cabf2b'
'3eedb8b91b13c29df9b1fe5cbb027e1470b802d2'
'19195ef59f0dbc61c6ed599a968213a8f0a7a5d4'
'e561e36c7bae61c3f5da65e4fb19a22e698f4584')
noextract=(${_srcname}-${pkgver}.tar.gz)
prepare() {
bsdtar -xf ${_srcname}-${pkgver}.tar.gz || true
}
build() {
cd ${_srcname}-${pkgver}
# need either motif or gtk2 for settings, but we do not pack it
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib --with-app-defaults=/usr/share/X11/app-defaults \
--with-pam --with-gl --with-motif \
--without-gle --with-pixbuf --with-jpeg
make
}
# thanks to aur/mate-screensaver-hacks for .desktop script
package() {
cd ${_srcname}-${pkgver}
make install_prefix="${pkgdir}" install
install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mkdir -p "${pkgdir}/usr/share/applications/screensavers/"
cd "${pkgdir}/usr/share/applications/screensavers/"
sh "${srcdir}/migrate-xscreensaver-config.sh" "${pkgdir}/usr/share/xscreensaver/config/*.xml"
rm -r "${pkgdir}/usr/share/xscreensaver"
# There are property files that conflict with xfce4-xscreensaver - remove them.
# Thank you @dpirate & @Barracuda for your patience
rm "${pkgdir}/usr/share/applications/xscreensaver.desktop"
rm "${pkgdir}/usr/share/applications/xscreensaver-settings.desktop"
rmdir "${pkgdir}/etc"
# popsquares exists on most frontends
if [ -d "${pkgdir}/usr/share/applications/screensavers/popsquares.desktop" ]; then
rm "${pkgdir}/usr/share/applications/screensavers/popsquares.desktop"
fi
}
|