diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/typespeed |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/typespeed')
-rw-r--r-- | community/typespeed/PKGBUILD | 22 | ||||
-rw-r--r-- | community/typespeed/typespeed.install | 16 |
2 files changed, 38 insertions, 0 deletions
diff --git a/community/typespeed/PKGBUILD b/community/typespeed/PKGBUILD new file mode 100644 index 000000000..8c574c877 --- /dev/null +++ b/community/typespeed/PKGBUILD @@ -0,0 +1,22 @@ +# $Id: PKGBUILD 34838 2010-12-12 22:33:17Z angvp $ +# Maintainer: Angel Velasquez <angvp@archlinux.org> +pkgname=typespeed +pkgver=0.6.5 +pkgrel=3 +pkgdesc="Test your typing speed, and get your fingers' CPS." +arch=('i686' 'x86_64') +url="http://typespeed.sourceforge.net" +license=('GPL') +depends=('ncurses') +install=$pkgname.install +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz) +md5sums=('578102b418c7df84903d3e90df2e7483') +build() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc + make + make DESTDIR=$pkgdir install +} + diff --git a/community/typespeed/typespeed.install b/community/typespeed/typespeed.install new file mode 100644 index 000000000..3fab10e3d --- /dev/null +++ b/community/typespeed/typespeed.install @@ -0,0 +1,16 @@ +post_install() { + getent group games > /dev/null || /usr/sbin/groupadd -g 20 games + /usr/bin/typespeed --makescores + chown root.20 /usr/share/typespeed/* +} + +post_upgrade() { + getent group games > /dev/null || /usr/sbin/groupadd -g 20 games + /usr/bin/typespeed --makescores + chown root.20 /usr/share/typespeed/* +} + +pre_remove() { +/bin/true +} + |