mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
28 lines
995 B
Bash
28 lines
995 B
Bash
|
# 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"
|
||
|
}
|
||
|
|