aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--LICENSE28
-rw-r--r--PKGBUILD31
-rw-r--r--programmers-dvorak.install32
4 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..e94e3d9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 1 14:57:05 UTC 2015
+pkgbase = programmers-dvorak
+ pkgdesc = Variant of the Dvorak keyboard layout designed for programmers
+ pkgver = 1.2
+ pkgrel = 4
+ url = http://www.kaufmann.no/roland/dvorak/index.html
+ install = programmers-dvorak.install
+ arch = any
+ license = custom
+ depends = libxslt
+ noextract = http://kaufmann.no/downloads/linux/dvp-1_2_1.map.gz
+ source = http://www.kaufmann.no/downloads/linux/kbddvp-1_2_1-src-linux.tgz
+ source = http://kaufmann.no/downloads/linux/dvp-1_2_1.map.gz
+ source = LICENSE
+ md5sums = 6d7797f1514be62cb01fbdf3a7e785a4
+ md5sums = 8cde9c8f6b4de6c7c2ebb27589a5116e
+ md5sums = 48ebb9016f6138334194103caba4483f
+
+pkgname = programmers-dvorak
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..74eb092
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,28 @@
+Copyright (c) 1999-2001 Roland Kaufmann. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must contain the above copyright
+ notice.
+3. Neither the name "Programmer Dvorak" nor the name "Roland Kaufmann"
+ may be used to endorse or promote products derived from this
+ software without specific prior written permission. For written
+ permission, please contact roland@kaufmann.no.
+4. Products derived from this software may not be called "Programmer Dvorak",
+ nor may "Programmer Dvorak" appear in their name, without prior
+ written permission of Roland Kaufmann.
+
+THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ROLAND
+KAUFMANN BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..68f5fdf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: AndreasBWagner <AndreasBWagner@pointfree.net>
+# Contributor: Mark Taylor <skymt0@gmail.com>
+
+pkgname=programmers-dvorak
+pkgver=1.2
+pkgrel=4
+pkgdesc="Variant of the Dvorak keyboard layout designed for programmers"
+arch=(any)
+url="http://www.kaufmann.no/roland/dvorak/index.html"
+license=('custom')
+install=programmers-dvorak.install
+depends=('libxslt')
+DLAGENTS=('http::/usr/bin/curl --user-agent "Mozilla/5.0 (X11; Linux i686; rv:2.0b3pre) Gecko/20100731 Firefox/4.0b3pre" -fLC - --retry 3 --retry-delay 3 -o %o %u')
+source=("http://www.kaufmann.no/downloads/linux/kbddvp-1_2_1-src-linux.tgz"
+ "http://kaufmann.no/downloads/linux/dvp-1_2_1.map.gz"
+ "LICENSE")
+noextract=("http://kaufmann.no/downloads/linux/dvp-1_2_1.map.gz")
+md5sums=('6d7797f1514be62cb01fbdf3a7e785a4'
+ '8cde9c8f6b4de6c7c2ebb27589a5116e'
+ '48ebb9016f6138334194103caba4483f')
+
+package() {
+ cd kbddvp-$pkgver
+ mkdir -p $pkgdir/usr/share/X11/xkb/{symbols,types}
+ chmod +x *.sh
+ ./dvp.install.sh $pkgdir/usr/share/X11/xkb
+ mkdir -p $pkgdir/usr/share/$pkgname
+ install -Dm644 $srcdir/dvp-1_2_1.map.gz $pkgdir/usr/share/kbd/keymaps/i386/dvorak/dvp.map.gz
+ install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -Dm755 *.sh $pkgdir/usr/share/$pkgname
+}
diff --git a/programmers-dvorak.install b/programmers-dvorak.install
new file mode 100644
index 0000000..b4950b5
--- /dev/null
+++ b/programmers-dvorak.install
@@ -0,0 +1,32 @@
+# arg 1: the new package version
+post_install() {
+ /usr/share/programmers-dvorak/dvp.postinst.sh || return 1
+ echo "PROGRAMMER'S DVORAK SETUP"
+ echo "-------------------------"
+ echo "To use the Programmer's Dvorak layout in X, edit"
+ echo "/etc/X11/xorg.conf, find the line with the string"
+ echo "'XkbLayout', and change your current layout to 'dvp'."
+ echo "-------------------------"
+ echo "To use the layout at a virtual terminal, edit"
+ echo "/etc/vconsole.conf and change KEYMAP from your current"
+ echo "layout to 'dvp'."
+}
+
+pre_upgrade() {
+ /usr/share/programmers-dvorak/dvp.prerm.sh
+ /usr/share/programmers-dvorak/dvp.remove.sh
+}
+
+post_upgrade() {
+ /usr/share/programmers-dvorak/dvp.postinst.sh
+}
+
+pre_remove() {
+ /usr/share/programmers-dvorak/dvp.prerm.sh
+ /usr/share/programmers-dvorak/dvp.remove.sh
+}
+
+op=$1
+shift
+
+$op $*