mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 11:02:13 +08:00
44 lines
1.5 KiB
Bash
44 lines
1.5 KiB
Bash
|
|
# Desktop Packages for Chakra, part of chakra-project.org
|
|
|
|
# Maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=xscreensaver
|
|
pkgver=5.19
|
|
pkgrel=1
|
|
pkgdesc="Screen saver and locker for the X Window System"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.jwz.org/xscreensaver/"
|
|
license=('BSD')
|
|
depends=('libxxf86misc' 'mesa' 'pam' 'xorg-res-utils' 'libxmu' 'libjpeg-turbo')
|
|
makedepends=('bc' 'libxpm')
|
|
backup=('etc/pam.d/xscreensaver')
|
|
source=(http://www.jwz.org/xscreensaver/${pkgname}-${pkgver}.tar.gz
|
|
add-electricsheep.diff
|
|
xscreensaver.pam
|
|
LICENSE)
|
|
sha1sums=('16437d45f568ded8721a917e082f9b4d948954ec'
|
|
'e413b1ceae40233fb543bf30d3cdbc23cabaa3b1'
|
|
'106635aa1aae51d6f0668b1853f6c49a4fe9d3d8'
|
|
'4209ea586b204fd1d81c382a0522c654f9fd9134')
|
|
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
patch -p0 -i "${srcdir}/add-electricsheep.diff"
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
--libexecdir=/usr/lib --with-x-app-defaults=/usr/share/X11/app-defaults \
|
|
--with-pam --without-motif --without-gtk --with-gl \
|
|
--without-gle --with-xpm --with-jpeg
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make install_prefix="${pkgdir}" install
|
|
install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
install -D -m644 ../xscreensaver.pam "${pkgdir}/etc/pam.d/xscreensaver"
|
|
chmod 755 "${pkgdir}/usr/bin/xscreensaver"
|
|
#echo "NotShowIn=KDE;" >> "${pkgdir}/usr/share/applications/xscreensaver-properties.desktop"
|
|
}
|