summaryrefslogtreecommitdiff
path: root/community/fbterm
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-22 02:49:14 -0800
committerroot <root@rshg054.dnsready.net>2012-12-22 02:49:14 -0800
commit0f92922979ec1f52c580079a4a49a7dc84af4ca1 (patch)
treefe2e215e3c2e3b9f297f1196511be57fcb5701d8 /community/fbterm
parentebf350f32a8352abbd1bb4a8a49ed750bb23f285 (diff)
Sat Dec 22 02:47:27 PST 2012
Diffstat (limited to 'community/fbterm')
-rw-r--r--community/fbterm/PKGBUILD32
-rw-r--r--community/fbterm/fbterm.install22
2 files changed, 54 insertions, 0 deletions
diff --git a/community/fbterm/PKGBUILD b/community/fbterm/PKGBUILD
new file mode 100644
index 000000000..d2ebdb0d7
--- /dev/null
+++ b/community/fbterm/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 81466 2012-12-21 12:36:51Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: noonov <noonov@gmail.com>
+
+pkgname=fbterm
+pkgver=1.7.0
+pkgrel=5
+pkgdesc="A fast terminal emulator for linux with frame buffer device or VESA video card"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/fbterm/"
+license=('GPL2')
+depends=('gcc-libs' 'fontconfig')
+optdepends=('libx86: for VESA video card support')
+install=fbterm.install
+source=("http://fbterm.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver%.?}"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver%.?}"
+
+ install -Dm644 terminfo/fbterm "${pkgdir}/usr/share/terminfo/f/fbterm"
+
+ make DESTDIR="${pkgdir}" TERMINFO="${pkgdir}/usr/share/terminfo" install
+}
+
+md5sums=('c36bae75a450df0519b4527cccaf7572')
diff --git a/community/fbterm/fbterm.install b/community/fbterm/fbterm.install
new file mode 100644
index 000000000..9b4d7ebd1
--- /dev/null
+++ b/community/fbterm/fbterm.install
@@ -0,0 +1,22 @@
+post_install() {
+ cat <<EOF
+
+==> To run fbterm as a non-root user, do:
+
+sudo gpasswd -a YOUR_USERNAME video
+
+
+==> To enable keyboard shortcuts for non-root users, do:
+
+sudo setcap 'cap_sys_tty_config+ep' /usr/bin/fbterm
+
+or
+
+sudo chmod u+s /usr/bin/fbterm
+
+EOF
+}
+
+post_upgrade() {
+ post_install $1
+}