summaryrefslogtreecommitdiffstats
path: root/main/xscreensaver/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-06 12:28:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-06 12:28:26 +0000
commit8a020e0de375e8a1c269063b0d29e796c14a3831 (patch)
tree1f2ab9ecc67acab83eb7a368894ffe3d504d9350 /main/xscreensaver/APKBUILD
parent5a3c0e13ff09164432d21900eee1e023290cd8dd (diff)
downloadaports-8a020e0de375e8a1c269063b0d29e796c14a3831.tar.bz2
aports-8a020e0de375e8a1c269063b0d29e796c14a3831.tar.xz
main/xscreensaver: split -extras and -gl-extras
ref #665
Diffstat (limited to 'main/xscreensaver/APKBUILD')
-rw-r--r--main/xscreensaver/APKBUILD32
1 files changed, 29 insertions, 3 deletions
diff --git a/main/xscreensaver/APKBUILD b/main/xscreensaver/APKBUILD
index 0ab3f2a91..b9eae2744 100644
--- a/main/xscreensaver/APKBUILD
+++ b/main/xscreensaver/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=xscreensaver
pkgver=5.13
-pkgrel=1
+pkgrel=2
pkgdesc="screensavers for X11 environment"
url="http://www.jwz.org/xscreensaver/"
license="GPL"
@@ -10,12 +10,13 @@ depends="bc"
makedepends="gtk+-dev jpeg-dev mesa-dev gettext-dev libxmu-dev perl-dev
libxml2-dev libglade-dev"
install=
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-gl-extras:gl $pkgname-extras $pkgname-lang"
source="http://www.jwz.org/$pkgname/$pkgname-$pkgver.tar.gz"
arch="all"
_builddir="$srcdir"/$pkgname-$pkgver
-
+_libexecdir=/usr/lib/xscreensaver
+_confdir=/usr/share/xscreensaver/config
prepare() {
cd "$_builddir"
}
@@ -28,6 +29,7 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-gtk \
+ --libexecdir=$_libexecdir \
|| return 1
make || return 1
}
@@ -37,4 +39,28 @@ package() {
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
+}
+
md5sums="a1a55b763e17c5c83a2b7cb5ddf23560 xscreensaver-5.13.tar.gz"