diff options
Diffstat (limited to 'community/gtypist')
-rw-r--r-- | community/gtypist/PKGBUILD | 24 | ||||
-rw-r--r-- | community/gtypist/gtypist.install | 18 |
2 files changed, 42 insertions, 0 deletions
diff --git a/community/gtypist/PKGBUILD b/community/gtypist/PKGBUILD new file mode 100644 index 000000000..a4da3bd68 --- /dev/null +++ b/community/gtypist/PKGBUILD @@ -0,0 +1,24 @@ +# $Id: PKGBUILD 20472 2010-07-08 11:19:12Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Ben Mazer <blm@groknil.org> +# Contributor: Mike Douglas <code_monkey@gooeylinux.org> + +pkgname=gtypist +pkgver=2.8.3 +pkgrel=3 +pkgdesc="universal typing tutor" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/gtypist/gtypist.html" +license=("GPL") +depends=('ncurses>=5.2' 'perl') +install=gtypist.install +source=(ftp://ftp.gnu.org/gnu/gtypist/$pkgname-$pkgver.tar.gz) +md5sums=('ea3c7faa01d7052c156d50fa0e0506b8') + +build() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr + make || return 1 + make prefix=$pkgdir/usr install || return 1 + rm -f $pkgdir/usr/share/info/dir +} diff --git a/community/gtypist/gtypist.install b/community/gtypist/gtypist.install new file mode 100644 index 000000000..7fd230fc4 --- /dev/null +++ b/community/gtypist/gtypist.install @@ -0,0 +1,18 @@ +infodir=/usr/share/info +filelist=(gtypist.info) + +post_install() { + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} |