summaryrefslogtreecommitdiff
path: root/community/ratpoison
diff options
context:
space:
mode:
Diffstat (limited to 'community/ratpoison')
-rw-r--r--community/ratpoison/PKGBUILD49
-rw-r--r--community/ratpoison/ratpoison.desktop8
-rw-r--r--community/ratpoison/ratpoison.install20
3 files changed, 77 insertions, 0 deletions
diff --git a/community/ratpoison/PKGBUILD b/community/ratpoison/PKGBUILD
new file mode 100644
index 000000000..b98d4f66f
--- /dev/null
+++ b/community/ratpoison/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 88374 2013-04-16 20:26:08Z kkeen $
+# Maintainer: Kyle Keen <keenerd@gmail.com>
+# Contributor: Aaron Griffin <aaron@archlinux.org>
+# Contributor: juergen <juergen@archlinux.org>
+# Contributor: John Proctor <jproctor@prium.net>
+
+pkgname=ratpoison
+pkgver=1.4.6
+pkgrel=1
+pkgdesc="A simple keystroke-driven window manager"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('libxinerama' 'readline' 'bash' 'perl' 'libxtst' 'libxft' 'texinfo')
+url="http://www.nongnu.org/ratpoison/"
+install="${pkgname}.install"
+source=("http://savannah.nongnu.org/download/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ "${pkgname}.desktop")
+md5sums=('5fbaab737cf7fcc8e5eb2d619aaa0eab'
+ '29c3cb9be59758e39d8471391231a74a')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr
+ make CFLAGS="$CFLAGS -DHAVE_GETLINE"
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # fix permissions
+ chmod a+x "${pkgdir}/usr/share/ratpoison/"{allwindows.sh,clickframe.pl,rpshowall.sh,rpws,split.sh}
+
+ # Not useful outside the source tree. Kill it
+ rm "${pkgdir}/usr/share/ratpoison/genrpbindings"
+
+ cd contrib
+ ./genrpbindings
+ install -dm755 "${pkgdir}/usr/share/ratpoison/bindings"
+ install -m644 {Ratpoison.pm,ratpoison-cmd.el,ratpoison.rb,ratpoison.lisp,ratpoison.py} \
+ "${pkgdir}/usr/share/ratpoison/bindings/"
+
+ install -Dm644 "${srcdir}/${pkgname}.desktop" \
+ "${pkgdir}/etc/X11/sessions/${pkgname}.desktop"
+
+ install -Dm644 "${pkgdir}/usr/share/ratpoison/ratpoison.el" \
+ "${pkgdir}/usr/share/emacs/site-lisp/ratpoison.el"
+}
diff --git a/community/ratpoison/ratpoison.desktop b/community/ratpoison/ratpoison.desktop
new file mode 100644
index 000000000..9e29bd46a
--- /dev/null
+++ b/community/ratpoison/ratpoison.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Ratpoison
+Comment=The ratpoison window manager
+Exec=ratpoison
+# no icon yet, only the top three are currently used
+Icon=
+Type=Application
diff --git a/community/ratpoison/ratpoison.install b/community/ratpoison/ratpoison.install
new file mode 100644
index 000000000..1eafd8f69
--- /dev/null
+++ b/community/ratpoison/ratpoison.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(ratpoison.info.gz)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}