Commit | Line | Data |
---|---|---|
209feeb0 H |
1 | # Contributor: Thomas Mudrunka <harvie@@email..cz> |
2 | # Maintainer: Thomas Mudrunka <harvie@@email..cz> | |
3 | # You can also contact me on http://blog.harvie.cz/ | |
4 | ||
5 | # -Original Maintainer: Eric Belanger <eric@archlinux.org> | |
6 | # -Original Contributor: Sean Middleditch <elanthis@awesomeplay.com> | |
7 | ||
8 | pkgname=xscreensaver-arch-logo | |
9 | _original_pkgname=xscreensaver | |
10 | pkgver=5.11 | |
11 | pkgrel=1 | |
12 | pkgdesc="Screen saver and locker for the X Window System. Version with replaced art/logos/graphics to better fit to the ArchLinux (Gnome,KDE,XFCE,...). Also adds enchanced desktop icon." | |
13 | arch=('i686' 'x86_64') | |
14 | url="http://www.jwz.org/xscreensaver/" | |
15 | license=('BSD') | |
16 | depends=('libxxf86misc' 'libglade' 'mesa' 'pam' 'xorg-res-utils') | |
17 | makedepends=('bc') | |
18 | conflicts=('xscreensaver') | |
19 | provides=('xscreensaver') | |
20 | backup=('etc/pam.d/xscreensaver') | |
21 | source=(http://www.jwz.org/xscreensaver/${_original_pkgname}-${pkgver}.tar.gz \ | |
22 | add-electricsheep.diff xscreensaver.pam LICENSE | |
23 | logo-50.xpm logo-180.xpm logo-50.png logo-180.png) | |
24 | md5sums=('80f981b86734ccb31c5b3b24af3930ae' | |
25 | 'f82524626ed8a6832cd279e0548a9b46' | |
26 | '367a3538f54db71f108b34cfa31088ac' | |
27 | '5e7f3f2a63d20a484742f5b4cb5d572c' | |
28 | '3ab3668446f774f3539cf80a6538c188' | |
29 | '6c02caa437038fe275bbed7c94f1f982' | |
30 | '5c07dfa0c24edf141db09546bd11cc12' | |
31 | '04f820ef64a2b9580ad40fa389885133') | |
32 | ||
33 | build() { | |
34 | cd "${srcdir}/${_original_pkgname}-${pkgver}" | |
35 | patch -Np0 -i "${srcdir}/add-electricsheep.diff" || return 1 | |
36 | ||
37 | cd ${srcdir} | |
38 | cp -f logo-180.xpm ${_original_pkgname}-${pkgver}/utils/images/ | |
39 | ||
40 | cd "${srcdir}/${_original_pkgname}-${pkgver}" | |
41 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ | |
42 | --libexecdir=/usr/lib --with-x-app-defaults=/usr/share/X11/app-defaults \ | |
43 | --with-pam --without-motif --with-gtk --without-gnome --with-xml --with-gl \ | |
44 | --without-gle --with-xpm --with-pixbuf --with-jpeg || return 1 | |
45 | (cd hacks ; make m6502.h) | |
46 | (cd hacks/glx ; make molecules.h) | |
47 | make || return 1 | |
48 | } | |
49 | ||
50 | package() { | |
51 | cd "${srcdir}/${_original_pkgname}-${pkgver}" | |
52 | make install_prefix="${pkgdir}" install || return 1 | |
53 | install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${_original_pkgname}/LICENSE" || return 1 | |
54 | install -D -m644 ../xscreensaver.pam "${pkgdir}/etc/pam.d/xscreensaver" || return 1 | |
55 | chmod 755 "${pkgdir}/usr/bin/xscreensaver" || return 1 | |
56 | #echo "NotShowIn=KDE;GNOME;" >> "${pkgdir}/usr/share/applications/xscreensaver-properties.desktop" || return 1 | |
57 | } |