PKGBUILDs/community/speakup/PKGBUILD

28 lines
995 B
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
_kernver='2.6.30-ARCH'
pkgname=speakup
pkgver=3.1.3
pkgrel=1
pkgdesc='Kernel-based screenreader for the Linux console'
arch=('i686' 'x86_64')
url="http://linux-speakup.org/"
license=('GPL2')
source=("ftp://linux-speakup.org/pub/speakup/$pkgname-$pkgver.tar.bz2")
md5sums=('395ba6e883d4e211caa9902040ecf9b2')
install='speakup.install'
depends=('speakup-utils>=3.1.0' 'kernel26>=2.6.30-1' 'kernel26<2.6.31')
build() {
cd "$srcdir/$pkgname-$pkgver/src"
make KERNELDIR="/lib/modules/${_kernver}/build" || return 1
install -d "$pkgdir/lib/modules/${_kernver}/kernel/drivers/$pkgname" \
|| return 1
install -d "$pkgdir/usr/share/doc/$pkgname" || return 1
install -m 0644 speakup*.ko \
"$pkgdir/lib/modules/${_kernver}/kernel/drivers/$pkgname" || return 1
install -m 0644 ../doc/* "$pkgdir/usr/share/doc/$pkgname" || return 1
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" \
"$startdir/speakup.install"
}