summaryrefslogtreecommitdiff
path: root/user/xscreensaver
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-03-24 15:20:12 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-03-24 15:20:12 -0500
commita28ef2b7e01d0e271cdc5a4a3fe3d4d4021c84de (patch)
tree92c46bb5ba972a51c4cf78a2a0fb07cd48cc3139 /user/xscreensaver
parentf10edde9300f27f153d17878a077ed1c58908e18 (diff)
downloadpackages-a28ef2b7e01d0e271cdc5a4a3fe3d4d4021c84de.tar.gz
packages-a28ef2b7e01d0e271cdc5a4a3fe3d4d4021c84de.tar.bz2
packages-a28ef2b7e01d0e271cdc5a4a3fe3d4d4021c84de.tar.xz
packages-a28ef2b7e01d0e271cdc5a4a3fe3d4d4021c84de.zip
user/xscreensaver: new package
Diffstat (limited to 'user/xscreensaver')
-rw-r--r--user/xscreensaver/APKBUILD37
-rw-r--r--user/xscreensaver/xscreensaver-fixes.patch14
2 files changed, 51 insertions, 0 deletions
diff --git a/user/xscreensaver/APKBUILD b/user/xscreensaver/APKBUILD
new file mode 100644
index 000000000..ec875ee16
--- /dev/null
+++ b/user/xscreensaver/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=xscreensaver
+pkgver=5.42
+pkgrel=0
+pkgdesc="X Screensaver suite"
+url="https://www.jwz.org/xscreensaver/"
+arch="all"
+options="!check suid" # no tests
+license="MIT"
+depends=""
+makedepends="gtk+2.0-dev intltool libglade-dev libice-dev libjpeg-turbo-dev
+ libx11-dev libxft-dev libxinerama-dev libxml2-dev libxml2-utils
+ libxrandr-dev libxt-dev linux-pam-dev mesa-dev mesa-glapi"
+subpackages="$pkgname-doc $pkgname-lang"
+source="https://www.jwz.org/xscreensaver/xscreensaver-$pkgver.tar.gz
+ xscreensaver-fixes.patch"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make install_prefix="$pkgdir" install
+}
+
+sha512sums="84cde9364c933de720acd51a0bf75eb4d0642d60f62b92de89d932233eb5abb51e1edb53cd413b2dc4801a02cb68652a28d7d1f83cdaa8d8cdd1fee7d651eefd xscreensaver-5.42.tar.gz
+1df5d3a1456990eb0b2a9efb65fcd26ce576e470a0d6ee268e84e4b399dda930f5ed0960d185e55a7fdab10e5dc42fa2c90060b16443954ec2fce306c8855b54 xscreensaver-fixes.patch"
diff --git a/user/xscreensaver/xscreensaver-fixes.patch b/user/xscreensaver/xscreensaver-fixes.patch
new file mode 100644
index 000000000..0f5381902
--- /dev/null
+++ b/user/xscreensaver/xscreensaver-fixes.patch
@@ -0,0 +1,14 @@
+diff -Nurd xscreensaver-5.42/hacks/fontglide.c xscreensaver-5.42.new/hacks/fontglide.c
+--- xscreensaver-5.42/hacks/fontglide.c 2018-09-02 17:56:45.000000000 -0500
++++ xscreensaver-5.42.new/hacks/fontglide.c 2019-03-24 14:09:46.559263834 -0500
+@@ -2421,8 +2421,8 @@
+
+ textclient_close (s->tc);
+
+-// if (s->b && s->b != s->window) XFreePixmap (dpy, s->b);
+-// if (s->ba && s->ba != s->b) XFreePixmap (dpy, s->ba);
++/* if (s->b && s->b != s->window) XFreePixmap (dpy, s->b); */
++/* if (s->ba && s->ba != s->b) XFreePixmap (dpy, s->ba); */
+ XFreeGC (dpy, s->bg_gc);
+ if (s->charset) free (s->charset);
+ if (s->font_override) free (s->font_override);