summaryrefslogtreecommitdiff
path: root/libre/xscreensaver-libre/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
commit8185891e28635bdb83fdf4ba4391030912dae596 (patch)
tree66a946535bdd228514750233b2cc99dd1866ff64 /libre/xscreensaver-libre/PKGBUILD
parent60a11f87366fdfbd114cdc91ff813518858e5f8d (diff)
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'libre/xscreensaver-libre/PKGBUILD')
-rw-r--r--libre/xscreensaver-libre/PKGBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/libre/xscreensaver-libre/PKGBUILD b/libre/xscreensaver-libre/PKGBUILD
new file mode 100644
index 000000000..8ab5ec06a
--- /dev/null
+++ b/libre/xscreensaver-libre/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id: PKGBUILD 201451 2013-12-12 05:18:26Z eric $
+# Maintainer: Eric Bélanger <eric@archlinux.org>
+# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
+
+_pkgname=xscreensaver
+pkgname=xscreensaver-libre
+pkgver=5.26
+pkgrel=1
+pkgdesc="Screen saver and locker for the X Window System, without nonfree asm files"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.jwz.org/xscreensaver/"
+license=('BSD')
+depends=('libglade' 'libxmu' 'glu' 'xorg-appres' 'perl-libwww')
+makedepends=('bc' 'libxpm' 'gdm')
+optdepends=('gdm: for login manager support')
+replaces=("${_pkgname}")
+conflicts=("${_pkgname}")
+provides=("${_pkgname}=${pkgver}")
+backup=('etc/pam.d/xscreensaver')
+mksource=(http://www.jwz.org/xscreensaver/${_pkgname}-${pkgver}.tar.gz)
+source=(https://repo.parabolagnulinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz \
+ xscreensaver-add-electricsheep.diff LICENSE)
+mksha1sums=('8055822b661733e68550872a4ae6b6129c0b73fc')
+sha1sums=('f041ac860f52fab79c438012ebf58a021ef9bfea'
+ 'e8dc57b6471fb3867ee099304ac6bf628351cb98'
+ '3eedb8b91b13c29df9b1fe5cbb027e1470b802d2')
+
+mksource() {
+ cd ${_pkgname}-${pkgver}
+
+ # Deleting dmsc.asm file due which don't have source code supplied
+ rm -v hacks/images/m6502/dmsc.asm
+}
+
+prepare() {
+ cd ${_pkgname}-${pkgver}
+ patch -p0 -i "${srcdir}/xscreensaver-add-electricsheep.diff"
+}
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --libexecdir=/usr/lib --with-x-app-defaults=/usr/share/X11/app-defaults \
+ --with-pam --with-login-manager --with-gtk --with-gl \
+ --without-gle --with-pixbuf --with-jpeg
+ make
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ install -d "${pkgdir}/etc/pam.d"
+ make install_prefix="${pkgdir}" install
+ install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+ chmod 755 "${pkgdir}/usr/bin/xscreensaver"
+ echo "NotShowIn=KDE;GNOME;" >> "${pkgdir}/usr/share/applications/xscreensaver-properties.desktop"
+}