diff options
author | TBK <tbk@jjtc.eu> | 2019-05-31 04:10:27 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-12 13:55:01 +0000 |
commit | be952dcfac1911b5685ad02e83d3191c67a62fdf (patch) | |
tree | 3aa90e6db8ad556e105ddbb53925344c72be27d6 /community/xscreensaver | |
parent | e20ae53c740577e721832d6829cb6cdcece0ca59 (diff) | |
download | aports-be952dcfac1911b5685ad02e83d3191c67a62fdf.tar.bz2 aports-be952dcfac1911b5685ad02e83d3191c67a62fdf.tar.xz |
community/xscreensaver: move from main
Diffstat (limited to 'community/xscreensaver')
-rw-r--r-- | community/xscreensaver/APKBUILD | 69 | ||||
-rw-r--r-- | community/xscreensaver/fix-fontglide.patch | 11 |
2 files changed, 80 insertions, 0 deletions
diff --git a/community/xscreensaver/APKBUILD b/community/xscreensaver/APKBUILD new file mode 100644 index 0000000000..742c888978 --- /dev/null +++ b/community/xscreensaver/APKBUILD @@ -0,0 +1,69 @@ +# Contributor: +# Maintainer: +pkgname=xscreensaver +pkgver=5.42 +pkgrel=0 +pkgdesc="Screensavers for X11 environment" +url="https://www.jwz.org/xscreensaver/" +arch="all" +license="GPL-2.0-or-later GPL-3.0-or-later 0BSD MIT" +depends="bc" +options="suid" +makedepends="gtk+-dev libjpeg-turbo-dev mesa-dev gettext-dev libxmu-dev perl + libxml2-dev libglade-dev libxinerama-dev libxrandr-dev glu-dev sed" +subpackages="$pkgname-doc $pkgname-gl-extras:gl $pkgname-extras $pkgname-lang" +source="https://www.jwz.org/$pkgname/$pkgname-$pkgver.tar.gz + fix-fontglide.patch + " +builddir="$srcdir"/$pkgname-$pkgver +_libexecdir=/usr/lib/xscreensaver +_confdir=/usr/share/xscreensaver/config + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-gtk \ + --libexecdir=$_libexecdir \ + --with-xinerama-ext \ + --with-xf86vmode-ext \ + --with-randr-ext + make +} + +package() { + cd "$builddir" + make install_prefix="$pkgdir" install +} + +gl() { + local _conf + pkgdesc="An enhanced set of screensavers that require OpenGL" + cd "$pkgdir" + mkdir -p "$subpkgdir"/$_confdir + scanelf -Rn . | awk '$2 ~ /libGL/ { print $3}' | while read f; do + mkdir -p "$subpkgdir"/${f%/*} + mv "$f" "$subpkgdir"/${f%/*} + + _conf=usr/share/xscreensaver/config/${f##*/}.xml + if [ -f "$_conf" ]; then + mv "$_conf" "$subpkgdir"/$_confdir + fi + done +} + +extras() { + pkgdesc="An enhanced set of screensavers" + mkdir -p "$subpkgdir"/$_libexecdir \ + "$subpkgdir"/$_confdir + mv "$pkgdir"/$_libexecdir/* "$subpkgdir"/$_libexecdir + mv "$pkgdir"/$_confdir/* "$subpkgdir"/$_confdir +} + +sha512sums="84cde9364c933de720acd51a0bf75eb4d0642d60f62b92de89d932233eb5abb51e1edb53cd413b2dc4801a02cb68652a28d7d1f83cdaa8d8cdd1fee7d651eefd xscreensaver-5.42.tar.gz +26ef4e96f55c9e2f6a30804f1675b5267ffa4e36a573e15faaf6f536ee9517605e7e9424020a8678e32ac4489e7005b3e4197eeb80a416ad1a0fb1804aa22bce fix-fontglide.patch" diff --git a/community/xscreensaver/fix-fontglide.patch b/community/xscreensaver/fix-fontglide.patch new file mode 100644 index 0000000000..c1267dde63 --- /dev/null +++ b/community/xscreensaver/fix-fontglide.patch @@ -0,0 +1,11 @@ +--- a/hacks/fontglide.c ++++ b/hacks/fontglide.c +@@ -2421,8 +2421,6 @@ + + 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); + XFreeGC (dpy, s->bg_gc); + if (s->charset) free (s->charset); + if (s->font_override) free (s->font_override); |