updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fbrcapi / PKGBUILD
bloba5c0c8ad2b05e372bcb3d427cdb0e3c376d7acbf
1 # Contributor: Enno Lohmeier <e.lohmeier@gmx.de>
2 pkgname=fbrcapi
3 pkgver=0.3
4 pkgrel=1
5 pkgdesc="fbrcapi (Fritz!Box Remote CAPI over TCP) is a kernel module, for Fritz!Box Fon Routers to transport CAPI messages over TCP."
6 arch=(i686 x86_64)
7 url="http://fbrcapi.v3v.de/"
8 license=('GPL')
9 depends=('capi4k-utils' 'kernel26')
10 makedepends=('patch' 'perl')
11 source=('http://fbrcapi.v3v.de/dl/fbrcapi-0.3.tar.gz')
12 md5sums=('c9aae30be1e454f93f0b0fd20268cc51')
13 install=fbrcapi.install
15 build() {
16   cd "$srcdir/fbrcapi-$pkgver/"
18   perl -pe 's/.*/KERNEL_DIR := \/usr\/src\/linux-`uname -r`/ if $. == 1' Makefile > Makefile.tmp
20   perl -pe 's/.*/       mkdir -p \$(DESTDIR)\/\$(BUILD_DIR)/ if $. == 17' Makefile.tmp > Makefile
22   perl -pe 's/.*/       cp \$(BUILD_NAME).ko \$(DESTDIR)\/\$(BUILD_DIR)/ if $. == 18' Makefile > Makefile.tmp
24   perl -pe 's/.*// if $. == 19' Makefile.tmp > Makefile
26   make || return 1
28   
29   make DESTDIR=$pkgdir install